[EDAC ABI v13 20/25] i5100_edac: Fix a warning when compiled with 32 bits

From: Mauro Carvalho Chehab
Date: Mon Apr 16 2012 - 16:41:38 EST

drivers/edac/i5100_edac.c: In function âi5100_init_csrowsâ:
drivers/edac/i5100_edac.c:862:3: warning: format â%zdâ expects argument of type âsigned size_tâ, but argument 5 has type âlong unsigned intâ [-Wformat]

Reviewed-by: Aristeu Rozanski <arozansk@xxxxxxxxxx>
Cc: "Niklas SÃderlund" <niklas.soderlund@xxxxxxxxxxxx>
Cc: Borislav Petkov <borislav.petkov@xxxxxxx>
Signed-off-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>
drivers/edac/i5100_edac.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/edac/i5100_edac.c b/drivers/edac/i5100_edac.c
index 11aba5e..dd260c8 100644
--- a/drivers/edac/i5100_edac.c
+++ b/drivers/edac/i5100_edac.c
@@ -859,8 +859,8 @@ static void __devinit i5100_init_csrows(struct mem_ctl_info *mci)
i5100_rank_to_slot(mci, chan, rank));

- debugf2("dimm channel %d, rank %d, size %zd\n",
- chan, rank, PAGES_TO_MiB(npages));
+ debugf2("dimm channel %d, rank %d, size %ld\n",
+ chan, rank, (long)PAGES_TO_MiB(npages));


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/