aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2009-01-05 11:31:03 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-01-05 11:31:03 -0500
commit647b0d3854d776485faea9de7e7ed7fd4bdc6f20 (patch)
tree9a527f270afdf6157699d8c360b63a53c0419146 /drivers
parent572acc41274522b865440d0644d5f986e3c83755 (diff)
[MTD] [TESTS] Fix some size_t printk format warnings
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/tests/mtd_subpagetest.c6
-rw-r--r--drivers/mtd/tests/mtd_torturetest.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/tests/mtd_subpagetest.c b/drivers/mtd/tests/mtd_subpagetest.c
index 4c5e04d0b328..5b889724268e 100644
--- a/drivers/mtd/tests/mtd_subpagetest.c
+++ b/drivers/mtd/tests/mtd_subpagetest.c
@@ -125,7 +125,7 @@ static int write_eraseblock(int ebnum)
125 (long long)addr); 125 (long long)addr);
126 if (written != subpgsize) { 126 if (written != subpgsize) {
127 printk(PRINT_PREF " write size: %#x\n", subpgsize); 127 printk(PRINT_PREF " write size: %#x\n", subpgsize);
128 printk(PRINT_PREF " written: %#x\n", written); 128 printk(PRINT_PREF " written: %#zx\n", written);
129 } 129 }
130 return err ? err : -1; 130 return err ? err : -1;
131 } 131 }
@@ -139,7 +139,7 @@ static int write_eraseblock(int ebnum)
139 (long long)addr); 139 (long long)addr);
140 if (written != subpgsize) { 140 if (written != subpgsize) {
141 printk(PRINT_PREF " write size: %#x\n", subpgsize); 141 printk(PRINT_PREF " write size: %#x\n", subpgsize);
142 printk(PRINT_PREF " written: %#x\n", written); 142 printk(PRINT_PREF " written: %#zx\n", written);
143 } 143 }
144 return err ? err : -1; 144 return err ? err : -1;
145 } 145 }
@@ -164,7 +164,7 @@ static int write_eraseblock2(int ebnum)
164 if (written != subpgsize) { 164 if (written != subpgsize) {
165 printk(PRINT_PREF " write size: %#x\n", 165 printk(PRINT_PREF " write size: %#x\n",
166 subpgsize * k); 166 subpgsize * k);
167 printk(PRINT_PREF " written: %#08x\n", 167 printk(PRINT_PREF " written: %#08zx\n",
168 written); 168 written);
169 } 169 }
170 return err ? err : -1; 170 return err ? err : -1;
diff --git a/drivers/mtd/tests/mtd_torturetest.c b/drivers/mtd/tests/mtd_torturetest.c
index 2928d9e84eae..631a0ab3a33c 100644
--- a/drivers/mtd/tests/mtd_torturetest.c
+++ b/drivers/mtd/tests/mtd_torturetest.c
@@ -450,7 +450,7 @@ static void report_corrupt(unsigned char *read, unsigned char *written)
450 printk("-------------------------------------------------------" 450 printk("-------------------------------------------------------"
451 "----------------------------------\n"); 451 "----------------------------------\n");
452 452
453 printk(PRINT_PREF "Page %d has %d bytes/%d bits failing verify," 453 printk(PRINT_PREF "Page %zd has %d bytes/%d bits failing verify,"
454 " starting at offset 0x%x\n", 454 " starting at offset 0x%x\n",
455 (mtd->erasesize - check_len + i) / pgsize, 455 (mtd->erasesize - check_len + i) / pgsize,
456 bytes, bits, first); 456 bytes, bits, first);