mtd: Fix warning in sa1100-flash.c

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sun Sep 27 18:59:01 EDT 2009


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=794d579ae17a7ec8028e4844096059c19431a96c
Commit:     794d579ae17a7ec8028e4844096059c19431a96c
Parent:     c1558b55c55620f54f0f78cb8295947a2a3f6de2
Author:     Russell King <rmk at arm.linux.org.uk>
AuthorDate: Sun Sep 27 23:51:04 2009 +0100
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Sun Sep 27 15:54:43 2009 -0700

    mtd: Fix warning in sa1100-flash.c
    
    drivers/mtd/maps/sa1100-flash.c: In function 'sa1100_probe_subdev':
    drivers/mtd/maps/sa1100-flash.c:214: warning: format '%d' expects type 'int', but argument 3 has type 'uint64_t'
    
    Signed-off-by: Russell King <rmk+kernel at arm.linux.org.uk>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/maps/sa1100-flash.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/maps/sa1100-flash.c b/drivers/mtd/maps/sa1100-flash.c
index fdb97f3..d7a4757 100644
--- a/drivers/mtd/maps/sa1100-flash.c
+++ b/drivers/mtd/maps/sa1100-flash.c
@@ -209,8 +209,8 @@ static int sa1100_probe_subdev(struct sa_subdev_info *subdev, struct resource *r
 	}
 	subdev->mtd->owner = THIS_MODULE;
 
-	printk(KERN_INFO "SA1100 flash: CFI device at 0x%08lx, %dMiB, "
-		"%d-bit\n", phys, subdev->mtd->size >> 20,
+	printk(KERN_INFO "SA1100 flash: CFI device at 0x%08lx, %uMiB, %d-bit\n",
+		phys, (unsigned)(subdev->mtd->size >> 20),
 		subdev->map.bankwidth * 8);
 
 	return 0;



More information about the linux-mtd-cvs mailing list