diff mbox

[1/2] parport_gsc: fix printk format warning

Message ID 1242652252-1835-1-git-send-email-a.beregalov@gmail.com (mailing list archive)
State Accepted
Headers show

Commit Message

Alexander Beregalov May 18, 2009, 1:10 p.m. UTC
Fix this build warning:
drivers/parport/parport_gsc.c:356: 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/parport/parport_gsc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/drivers/parport/parport_gsc.c b/drivers/parport/parport_gsc.c
index 6531db2..51d4866 100644
--- a/drivers/parport/parport_gsc.c
+++ b/drivers/parport/parport_gsc.c
@@ -353,7 +353,7 @@  static int __devinit parport_init_chip(struct parisc_device *dev)
 
 	if (!dev->irq) {
 		printk(KERN_WARNING "IRQ not found for parallel device at 0x%lx\n",
-			dev->hpa.start);
+			(unsigned long)dev->hpa.start);
 		return -ENODEV;
 	}