[MTD] [MAPS] dilnetpc: Fix printk warning

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Thu Mar 8 05:59:03 EST 2007


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=99109a6dacfc314a51371d9c3212a55cd7c0c98c
Commit:     99109a6dacfc314a51371d9c3212a55cd7c0c98c
Parent:     83d480917b1af3f8fcffa7a9c8775e0f2dd03395
Author:     Alan Cox <alan at lxorguk.ukuu.org.uk>
AuthorDate: Wed Mar 7 16:36:01 2007 +0000
Committer:  David Woodhouse <dwmw2 at infradead.org>
CommitDate: Thu Mar 8 09:46:28 2007 +0000

    [MTD] [MAPS] dilnetpc: Fix printk warning
    
    The type of a resource could be 32 or 64bit depending upon platform or
    option so cast it explicitly.
    
    Signed-off-by: Alan Cox <alan at redhat.com>
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/mtd/maps/dilnetpc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mtd/maps/dilnetpc.c b/drivers/mtd/maps/dilnetpc.c
index b1104fe..1c3b34a 100644
--- a/drivers/mtd/maps/dilnetpc.c
+++ b/drivers/mtd/maps/dilnetpc.c
@@ -402,8 +402,8 @@ static int __init init_dnpc(void)
 			++higlvl_partition_info[i].name;
 	}
 
-	printk(KERN_NOTICE "DIL/Net %s flash: 0x%lx at 0x%lx\n",
-		is_dnp ? "DNPC" : "ADNP", dnpc_map.size, dnpc_map.phys);
+	printk(KERN_NOTICE "DIL/Net %s flash: 0x%lx at 0x%llx\n",
+		is_dnp ? "DNPC" : "ADNP", dnpc_map.size, (unsigned long long)dnpc_map.phys);
 
 	dnpc_map.virt = ioremap_nocache(dnpc_map.phys, dnpc_map.size);
 



More information about the linux-mtd-cvs mailing list