parport_gsc: fix printk format error

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, May 29, 2009 - 9:59 am

Gitweb:     http://git.kernel.org/linus/b5d598b41aebee67bf95802b68b888e98a449687
Commit:     b5d598b41aebee67bf95802b68b888e98a449687
Parent:     c3dc5bec05a2ae03a72ef82e321d77fb549d951c
Author:     Alexander Beregalov <a.beregalov@gmail.com>
AuthorDate: Thu May 28 14:34:33 2009 -0700
Committer:  Linus Torvalds <torvalds@linux-foundation.org>
CommitDate: Fri May 29 08:40:02 2009 -0700

    parport_gsc: fix printk format error
    
    drivers/parport/parport_gsc.c:356: warning: format '%lx' expects type
    'long unsigned int', but argument 2 has type 'resource_size_t'
    
    [akpm@linux-foundation.org: fix it to handle u64's]
    Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
---
 drivers/parport/parport_gsc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/parport/parport_gsc.c b/drivers/parport/parport_gsc.c
index e6a7e84..ea31a45 100644
--- a/drivers/parport/parport_gsc.c
+++ b/drivers/parport/parport_gsc.c
@@ -352,8 +352,8 @@ static int __devinit parport_init_chip(struct parisc_device *dev)
 	unsigned long port;
 
 	if (!dev->irq) {
-		printk(KERN_WARNING "IRQ not found for parallel device at 0x%lx\n",
-			dev->hpa.start);
+		printk(KERN_WARNING "IRQ not found for parallel device at 0x%llx\n",
+			(unsigned long long)dev->hpa.start);
 		return -ENODEV;
 	}
 
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
parport_gsc: fix printk format error, Linux Kernel Mailing ..., (Fri May 29, 9:59 am)