Skip to contentSkip to conversation

MTD: dilnetpc: use %p for ptr printk arg.

PATCH New Randy.Dunlap 1 participant 1 message Oct 12, 2004 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MTD: dilnetpc: use %p for ptr printk arg.

Signature · 2 lines
-- 
~Randy

Use %p to print a pointer, so that its length doesn't matter and so that gcc won't complain.

drivers/mtd/maps/dilnetpc.c:416: warning: long unsigned int format, pointer arg (arg 2)

diffstat:=

 drivers/mtd/maps/dilnetpc.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/maps/dilnetpc.c renamed from drivers/mtd/maps/dilnetpc.c~dilnetpc_printk +1 -1
diff -Naurp ./drivers/mtd/maps/dilnetpc.c~dilnetpc_printk ./drivers/mtd/maps/dilnetpc.c
@@ -413,7 +413,7 @@ static int __init init_dnpc(void)
 	}
 	simple_map_init(&dnpc_map);
 
-	printk("FLASH virtual address: 0x%lx\n", dnpc_map.virt);
+	printk("FLASH virtual address: 0x%p\n", dnpc_map.virt);
 
 	mymtd = do_map_probe("jedec_probe", &dnpc_map);