Patchwork lasi_82596: fix printk format warning

login
register
mail settings
Submitter Alexander Beregalov
Date May 5, 2009, 11:03 a.m.
Message ID <1241521412-16190-1-git-send-email-a.beregalov@gmail.com>
Download mbox | patch
Permalink /patch/26873/
State Accepted
Delegated to: David Miller
Headers show

Comments

Alexander Beregalov - May 5, 2009, 11:03 a.m.
drivers/net/lasi_82596.c:164: warning: format '%lx' expects type
	'long unsigned int', but argument 3 has type 'resource_size_t'
drivers/net/lasi_82596.c:169: warning: format '%lx' expects type
	'long unsigned int', but argument 2 has type 'resource_size_t'

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
---
 drivers/net/lasi_82596.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
David Miller - May 5, 2009, 7:30 p.m.
From: Alexander Beregalov <a.beregalov@gmail.com>
Date: Tue,  5 May 2009 15:03:32 +0400

> drivers/net/lasi_82596.c:164: warning: format '%lx' expects type
> 	'long unsigned int', but argument 3 has type 'resource_size_t'
> drivers/net/lasi_82596.c:169: warning: format '%lx' expects type
> 	'long unsigned int', but argument 2 has type 'resource_size_t'
> 
> Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>

APplied to net-next-2.6
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/net/lasi_82596.c b/drivers/net/lasi_82596.c
index efbae4b..a0c5785 100644
--- a/drivers/net/lasi_82596.c
+++ b/drivers/net/lasi_82596.c
@@ -161,12 +161,12 @@  lan_init_chip(struct parisc_device *dev)
 
 	if (!dev->irq) {
 		printk(KERN_ERR "%s: IRQ not found for i82596 at 0x%lx\n",
-			__FILE__, dev->hpa.start);
+			__FILE__, (unsigned long)dev->hpa.start);
 		return -ENODEV;
 	}
 
-	printk(KERN_INFO "Found i82596 at 0x%lx, IRQ %d\n", dev->hpa.start,
-			dev->irq);
+	printk(KERN_INFO "Found i82596 at 0x%lx, IRQ %d\n",
+			(unsigned long)dev->hpa.start, dev->irq);
 
 	netdevice = alloc_etherdev(sizeof(struct i596_private));
 	if (!netdevice)