[MTD] Fix printk format warning in physmap. (resources again)
authorRandy Dunlap <randy.dunlap@oracle.com>
Tue, 28 Nov 2006 23:40:46 +0000 (23:40 +0000)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 28 Nov 2006 23:40:46 +0000 (23:40 +0000)
Fix printk format warning:
drivers/mtd/maps/physmap.c:93: warning: long long unsigned int format, long unsigned int arg (arg 2)

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/maps/physmap.c

index d1717763f719778512e1229a42336773d00305d1..bb67c505b1a5b7875431949904a965abf82a743d 100644 (file)
@@ -89,7 +89,7 @@ static int physmap_flash_probe(struct platform_device *dev)
                return -ENODEV;
 
                printk(KERN_NOTICE "physmap platform flash device: %.8llx at %.8llx\n",
-           (unsigned long long)dev->resource->end - dev->resource->start + 1,
+           (unsigned long long)(dev->resource->end - dev->resource->start + 1),
            (unsigned long long)dev->resource->start);
 
        info = kmalloc(sizeof(struct physmap_flash_info), GFP_KERNEL);