]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
[MTD] [TESTS] Fix some size_t printk format warnings
authorDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 5 Jan 2009 16:31:03 +0000 (16:31 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 5 Jan 2009 16:31:03 +0000 (16:31 +0000)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/tests/mtd_subpagetest.c
drivers/mtd/tests/mtd_torturetest.c

index 4c5e04d0b3286acdc0cab34108e5a8e53ab1ed95..5b889724268ed020a04fcf0d9732aa6daf9743fe 100644 (file)
@@ -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;
index 2928d9e84eae523359759e3b1aec3faa3778f0f2..631a0ab3a33c506ef575fff3b5e5fd1769f3e6f6 100644 (file)
@@ -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);