]> git.neil.brown.name Git - history.git/commitdiff
MTD: dilnetpc: use %p for ptr printk arg.
authorRandy Dunlap <rddunlap@osdl.org>
Thu, 21 Oct 2004 10:34:07 +0000 (11:34 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Thu, 21 Oct 2004 10:34:07 +0000 (11:34 +0100)
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>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/maps/dilnetpc.c

index f69992c1ba1a872da26173665369984c1f78b3cd..acb5cf16c64d3c678e05349fe50934d28d27f03a 100644 (file)
@@ -14,7 +14,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  *
- * $Id: dilnetpc.c,v 1.14 2004/09/16 23:27:13 gleixner Exp $
+ * $Id: dilnetpc.c,v 1.15 2004/10/21 08:31:32 dwmw2 Exp $
  *
  * The DIL/Net PC is a tiny embedded PC board made by SSV Embedded Systems
  * featuring the AMD Elan SC410 processor. There are two variants of this
@@ -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);