Commit 647b0d38 authored by David Woodhouse's avatar David Woodhouse

[MTD] [TESTS] Fix some size_t printk format warnings

Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 572acc41
...@@ -125,7 +125,7 @@ static int write_eraseblock(int ebnum) ...@@ -125,7 +125,7 @@ static int write_eraseblock(int ebnum)
(long long)addr); (long long)addr);
if (written != subpgsize) { if (written != subpgsize) {
printk(PRINT_PREF " write size: %#x\n", subpgsize); printk(PRINT_PREF " write size: %#x\n", subpgsize);
printk(PRINT_PREF " written: %#x\n", written); printk(PRINT_PREF " written: %#zx\n", written);
} }
return err ? err : -1; return err ? err : -1;
} }
...@@ -139,7 +139,7 @@ static int write_eraseblock(int ebnum) ...@@ -139,7 +139,7 @@ static int write_eraseblock(int ebnum)
(long long)addr); (long long)addr);
if (written != subpgsize) { if (written != subpgsize) {
printk(PRINT_PREF " write size: %#x\n", subpgsize); printk(PRINT_PREF " write size: %#x\n", subpgsize);
printk(PRINT_PREF " written: %#x\n", written); printk(PRINT_PREF " written: %#zx\n", written);
} }
return err ? err : -1; return err ? err : -1;
} }
...@@ -164,7 +164,7 @@ static int write_eraseblock2(int ebnum) ...@@ -164,7 +164,7 @@ static int write_eraseblock2(int ebnum)
if (written != subpgsize) { if (written != subpgsize) {
printk(PRINT_PREF " write size: %#x\n", printk(PRINT_PREF " write size: %#x\n",
subpgsize * k); subpgsize * k);
printk(PRINT_PREF " written: %#08x\n", printk(PRINT_PREF " written: %#08zx\n",
written); written);
} }
return err ? err : -1; return err ? err : -1;
......
...@@ -450,7 +450,7 @@ static void report_corrupt(unsigned char *read, unsigned char *written) ...@@ -450,7 +450,7 @@ static void report_corrupt(unsigned char *read, unsigned char *written)
printk("-------------------------------------------------------" printk("-------------------------------------------------------"
"----------------------------------\n"); "----------------------------------\n");
printk(PRINT_PREF "Page %d has %d bytes/%d bits failing verify," printk(PRINT_PREF "Page %zd has %d bytes/%d bits failing verify,"
" starting at offset 0x%x\n", " starting at offset 0x%x\n",
(mtd->erasesize - check_len + i) / pgsize, (mtd->erasesize - check_len + i) / pgsize,
bytes, bits, first); bytes, bits, first);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment