Skip to content

Commit

Permalink
[MTD] [TESTS] Fix some size_t printk format warnings
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jan 5, 2009
1 parent 572acc4 commit 647b0d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions drivers/mtd/tests/mtd_subpagetest.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ static int write_eraseblock(int ebnum)
(long long)addr);
if (written != 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;
}
Expand All @@ -139,7 +139,7 @@ static int write_eraseblock(int ebnum)
(long long)addr);
if (written != 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;
}
Expand All @@ -164,7 +164,7 @@ static int write_eraseblock2(int ebnum)
if (written != subpgsize) {
printk(PRINT_PREF " write size: %#x\n",
subpgsize * k);
printk(PRINT_PREF " written: %#08x\n",
printk(PRINT_PREF " written: %#08zx\n",
written);
}
return err ? err : -1;
Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/tests/mtd_torturetest.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ static void report_corrupt(unsigned char *read, unsigned char *written)
printk("-------------------------------------------------------"
"----------------------------------\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",
(mtd->erasesize - check_len + i) / pgsize,
bytes, bits, first);
Expand Down

0 comments on commit 647b0d3

Please sign in to comment.