mtd: afs: fix build warning
authorRussell King <linux@arm.linux.org.uk>
Sat, 18 Jul 2009 13:10:44 +0000 (14:10 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 4 Sep 2009 08:38:14 +0000 (09:38 +0100)
drivers/mtd/afs.c:244: warning: format ‘%5d’ expects type ‘int’, but argument 4 has type ‘uint64_t’

[dwmw2: fix incorrect 'KB' too]
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/afs.c

index d072ca5be689a5ee8f1a426e3d1103762fb75283..cec7ab98b2a9d9bed2496a335881469b12b0b0b0 100644 (file)
@@ -239,7 +239,7 @@ static int parse_afs_partitions(struct mtd_info *mtd,
                parts[idx].offset       = img_ptr;
                parts[idx].mask_flags   = 0;
 
-               printk("  mtd%d: at 0x%08x, %5dKB, %8u, %s\n",
+               printk("  mtd%d: at 0x%08x, %5lluKiB, %8u, %s\n",
                        idx, img_ptr, parts[idx].size / 1024,
                        iis.imageNumber, str);