mtd: oobtest: correct printf() format specifier for 'size_t'
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon Dec 15 19:59:08 PST 2014
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=806b6ef5676a1c6ea78592174aae15f59bb0a923
Commit: 806b6ef5676a1c6ea78592174aae15f59bb0a923
Parent: 62d956dc3e11138c5ffd4b2c62e4f909c5180a12
Author: Brian Norris <computersforpeace at gmail.com>
AuthorDate: Thu Nov 20 01:26:51 2014 -0800
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Thu Nov 20 01:26:51 2014 -0800
mtd: oobtest: correct printf() format specifier for 'size_t'
Fixes warning:
drivers/mtd/tests/oobtest.c: In function 'memcmpshow':
drivers/mtd/tests/oobtest.c:129: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'size_t'
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
Cc: Roger Quadros <rogerq at ti.com>
Cc: Sekhar Nori <nsekhar at ti.com>
---
drivers/mtd/tests/oobtest.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/tests/oobtest.c b/drivers/mtd/tests/oobtest.c
index 1fd2cda..5e06118 100644
--- a/drivers/mtd/tests/oobtest.c
+++ b/drivers/mtd/tests/oobtest.c
@@ -132,7 +132,7 @@ static size_t memcmpshow(loff_t addr, const void *cs, const void *ct, size_t cou
for (su1 = cs, su2 = ct; 0 < count; ++su1, ++su2, count--, i++) {
res = *su1 ^ *su2;
if (res) {
- pr_info("error @addr[0x%lx:0x%x] 0x%x -> 0x%x diff 0x%x\n",
+ pr_info("error @addr[0x%lx:0x%zx] 0x%x -> 0x%x diff 0x%x\n",
(unsigned long)addr, i, *su1, *su2, res);
bitflips += hweight8(res);
}
More information about the linux-mtd-cvs
mailing list