net: fix hydra printk format warning
Subsystems (2)
PATCH 1/1 net: fix hydra printk format warning
From: Randy Dunlap <[email protected]>
m68k:drivers/net/hydra.c:178: warning: format '%08lx' expects type 'long unsigned int', but argument 3 has type 'resource_size_t'
Signed-off-by Randy Dunlap <[email protected]>
--- drivers/net/hydra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/hydra.c +2 -2
@@ -173,9 +173,9 @@ static int __devinit hydra_init(struct zzorro_set_drvdata (z, dev); -printk (KERN_INFO "%s: Hydra at 0x%08lx, address " +printk (KERN_INFO "%s: Hydra at 0x%08llx, address " "%pM (hydra.c " HYDRA_VERSION ")\n" , - dev->name, z->resource.start, dev->dev_addr); + dev->name, (unsigned long long )z->resource.start, dev->dev_addr);return 0 ; }
---
~Randy
LPC 2009, Sept. 23-25, Portland, Oregon
http://linuxplumbersconf.org/2009/
From: Randy Dunlap <[email protected]>
Date: Fri, 4 Sep 2009 17:20:37 -0700
Quoted 6 lines
From: Randy Dunlap <[email protected]>
m68k:
drivers/net/hydra.c:178: warning: format '%08lx' expects type 'long unsigned int', but argument 3 has type 'resource_size_t'Signed-off-by Randy Dunlap <[email protected]>
Applied to net-next-2.6, thanks.