]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MTD] [MAPS] sc520cdp warning fix
authorAndrew Morton <akpm@linux-foundation.org>
Sun, 18 Feb 2007 00:02:06 +0000 (16:02 -0800)
committerDavid Woodhouse <dwmw2@infradead.org>
Sun, 18 Feb 2007 16:41:01 +0000 (16:41 +0000)
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@linux-foundation.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/maps/sc520cdp.c

index 9b50cfc355b113b411040b6d473a518ec5e92ccb..4045e372b90db10b53baaae4d15d045a881e90f9 100644 (file)
@@ -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);