MTD: dilnetpc: use %p for ptr printk arg.
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)
Signed-off-by Randy Dunlap <[email protected]>
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
@@ -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);