[MTD] [MAPS] sc520cdp warning fix

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sun Feb 18 11:59:02 EST 2007


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=e389612deceea0816a8027fb2fcf68d5856c8d3a
Commit:     e389612deceea0816a8027fb2fcf68d5856c8d3a
Parent:     5785bdd6fca4e117c9891c377347ff1a987abb1b
Author:     Andrew Morton <akpm at linux-foundation.org>
AuthorDate: Sat Feb 17 16:02:06 2007 -0800
Committer:  David Woodhouse <dwmw2 at infradead.org>
CommitDate: Sun Feb 18 16:41:01 2007 +0000

    [MTD] [MAPS] sc520cdp warning fix
    
    drivers/mtd/maps/sc520cdp.c:241: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'resource_size_t'
    drivers/mtd/maps/netsc520.c: In function 'init_netsc520':
    
    Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/mtd/maps/sc520cdp.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/maps/sc520cdp.c b/drivers/mtd/maps/sc520cdp.c
index 9b50cfc..4045e37 100644
--- a/drivers/mtd/maps/sc520cdp.c
+++ b/drivers/mtd/maps/sc520cdp.c
@@ -237,8 +237,9 @@ static int __init init_sc520cdp(void)
 #endif
 
 	for (i = 0; i < NUM_FLASH_BANKS; i++) {
-		printk(KERN_NOTICE "SC520 CDP flash device: 0x%lx at 0x%lx\n",
-		       sc520cdp_map[i].size, sc520cdp_map[i].phys);
+		printk(KERN_NOTICE "SC520 CDP flash device: 0x%Lx at 0x%Lx\n",
+			(unsigned long long)sc520cdp_map[i].size,
+			(unsigned long long)sc520cdp_map[i].phys);
 
 		sc520cdp_map[i].virt = ioremap_nocache(sc520cdp_map[i].phys, sc520cdp_map[i].size);
 



More information about the linux-mtd-cvs mailing list