From: Russell King Date: Sat, 18 Jul 2009 13:10:44 +0000 (+0100) Subject: mtd: afs: fix build warning X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0ffd24fc7f82a0b594250e5f221340be4c322cda;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git mtd: afs: fix build warning 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 Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/afs.c b/drivers/mtd/afs.c index d072ca5be689..cec7ab98b2a9 100644 --- a/drivers/mtd/afs.c +++ b/drivers/mtd/afs.c @@ -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);