Patchwork MTD: afs: fix build warning

login
register
mail settings
Submitter Russell King - ARM Linux
Date July 18, 2009, 1:10 p.m.
Message ID <20090718131044.GA4120@n2100.arm.linux.org.uk>
Download mbox | patch
Permalink /patch/29962/
State New
Headers show

Comments

Russell King - ARM Linux - July 18, 2009, 1:10 p.m.
drivers/mtd/afs.c:244: warning: format ‘%5d’ expects type ‘int’, but argument 4 has type ‘uint64_t’

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

---
 drivers/mtd/afs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/drivers/mtd/afs.c b/drivers/mtd/afs.c
index d072ca5..e29e81d 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, %5lluKB, %8u, %s\n",
 			idx, img_ptr, parts[idx].size / 1024,
 			iis.imageNumber, str);