Skip to contentSkip to conversation

MTD: afs: fix build warning

PATCH New Russell King - ARM Linux 1 participant 1 message Jul 18, 2009 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MTD: afs: fix build warning

drivers/mtd/afs.c:244: warning: format ‘%5d’ expects type ‘int’, but argument 4 has type ‘uint64_t’

---
 drivers/mtd/afs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/afs.c +1 -1
index d072ca5..e29e81d 100644
@@ -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);