* [PATCH] MTD: dilnetpc: use %p for ptr printk arg.
@ 2004-10-12 17:47 Randy.Dunlap
0 siblings, 0 replies; only message in thread
From: Randy.Dunlap @ 2004-10-12 17:47 UTC (permalink / raw)
To: dwmw2, linux-mtd
[-- Attachment #1: Type: text/plain, Size: 12 bytes --]
--
~Randy
[-- Attachment #2: mtd_dilnetpc_printk.patch --]
[-- Type: text/x-patch, Size: 837 bytes --]
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 <rddunlap@osdl.org>
diffstat:=
drivers/mtd/maps/dilnetpc.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -Naurp ./drivers/mtd/maps/dilnetpc.c~dilnetpc_printk ./drivers/mtd/maps/dilnetpc.c
--- ./drivers/mtd/maps/dilnetpc.c~dilnetpc_printk 2004-08-13 22:36:32.000000000 -0700
+++ ./drivers/mtd/maps/dilnetpc.c 2004-10-12 09:24:31.692189064 -0700
@@ -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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-10-12 17:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-12 17:47 [PATCH] MTD: dilnetpc: use %p for ptr printk arg Randy.Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox