From: "Randy.Dunlap" <rddunlap@osdl.org>
To: dwmw2@redhat.com, linux-mtd@lists.infradead.org
Subject: [PATCH] MTD: dilnetpc: use %p for ptr printk arg.
Date: Tue, 12 Oct 2004 10:47:20 -0700 [thread overview]
Message-ID: <416C18A8.2010105@osdl.org> (raw)
[-- 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);
reply other threads:[~2004-10-12 17:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=416C18A8.2010105@osdl.org \
--to=rddunlap@osdl.org \
--cc=dwmw2@redhat.com \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.