mtd: afs: fix build warning

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Sep 4 04:59:03 EDT 2009


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=0ffd24fc7f82a0b594250e5f221340be4c322cda
Commit:     0ffd24fc7f82a0b594250e5f221340be4c322cda
Parent:     76d6a4791609e4d14b411a513c7648b19b258d8f
Author:     Russell King <linux at arm.linux.org.uk>
AuthorDate: Sat Jul 18 14:10:44 2009 +0100
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri Sep 4 09:38:14 2009 +0100

    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 <rmk+kernel at arm.linux.org.uk>
    Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/afs.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/afs.c b/drivers/mtd/afs.c
index d072ca5..cec7ab9 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);
 



More information about the linux-mtd-cvs mailing list