diff options
author | Brian Norris <computersforpeace@gmail.com> | 2014-11-20 04:26:51 -0500 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-11-20 04:26:51 -0500 |
commit | 806b6ef5676a1c6ea78592174aae15f59bb0a923 (patch) | |
tree | 54d254f47596aa1b1a03e771838f739341b0f948 /drivers/mtd | |
parent | 62d956dc3e11138c5ffd4b2c62e4f909c5180a12 (diff) |
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@gmail.com>
Cc: Roger Quadros <rogerq@ti.com>
Cc: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/tests/oobtest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/tests/oobtest.c b/drivers/mtd/tests/oobtest.c index 1fd2cdad85f0..5e061186eab1 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 | |||
132 | for (su1 = cs, su2 = ct; 0 < count; ++su1, ++su2, count--, i++) { | 132 | for (su1 = cs, su2 = ct; 0 < count; ++su1, ++su2, count--, i++) { |
133 | res = *su1 ^ *su2; | 133 | res = *su1 ^ *su2; |
134 | if (res) { | 134 | if (res) { |
135 | pr_info("error @addr[0x%lx:0x%x] 0x%x -> 0x%x diff 0x%x\n", | 135 | pr_info("error @addr[0x%lx:0x%zx] 0x%x -> 0x%x diff 0x%x\n", |
136 | (unsigned long)addr, i, *su1, *su2, res); | 136 | (unsigned long)addr, i, *su1, *su2, res); |
137 | bitflips += hweight8(res); | 137 | bitflips += hweight8(res); |
138 | } | 138 | } |