[PATCH 4/4] i5100_edac: Fix a warning on a debug message

From: Mauro Carvalho Chehab
Date: Mon Mar 12 2012 - 08:48:50 EST


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

Signed-off-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>
---
drivers/edac/i5100_edac.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/edac/i5100_edac.c b/drivers/edac/i5100_edac.c
index 2eb44d8..254d7e4 100644
--- a/drivers/edac/i5100_edac.c
+++ b/drivers/edac/i5100_edac.c
@@ -861,7 +861,7 @@ static void __devinit i5100_init_csrows(struct mem_ctl_info *mci)
"DIMM%u",
i5100_rank_to_slot(mci, chan, rank));

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

--
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/