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

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Jan 5 11:59:03 EST 2009


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=647b0d3854d776485faea9de7e7ed7fd4bdc6f20
Commit:     647b0d3854d776485faea9de7e7ed7fd4bdc6f20
Parent:     572acc41274522b865440d0644d5f986e3c83755
Author:     David Woodhouse <David.Woodhouse at intel.com>
AuthorDate: Mon Jan 5 16:31:03 2009 +0000
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Jan 5 16:31:03 2009 +0000

    [MTD] [TESTS] Fix some size_t printk format warnings
    
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/tests/mtd_subpagetest.c |    6 +++---
 drivers/mtd/tests/mtd_torturetest.c |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/mtd/tests/mtd_subpagetest.c b/drivers/mtd/tests/mtd_subpagetest.c
index 4c5e04d..5b88972 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)
 		       (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;
 	}
@@ -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;
 	}
@@ -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;
diff --git a/drivers/mtd/tests/mtd_torturetest.c b/drivers/mtd/tests/mtd_torturetest.c
index 2928d9e..631a0ab 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)
 		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);



More information about the linux-mtd-cvs mailing list