]> err.no Git - linux-2.6/commitdiff
drivers/ata/libata-eh.c: fix printk warning
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 14 Dec 2007 00:01:37 +0000 (16:01 -0800)
committerJeff Garzik <jeff@garzik.org>
Wed, 23 Jan 2008 10:24:13 +0000 (05:24 -0500)
drivers/ata/libata-eh.c: In function `ata_port_pbar_desc':
drivers/ata/libata-eh.c:215: warning: long long unsigned int format, long unsigned int arg (arg 4)

Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-eh.c

index d7d5a5ae04ef6f8a9134c963f667ee0c5a22c099..1bc1acf3bbbb78247c2565e6158e33bf39f61545 100644 (file)
@@ -231,7 +231,8 @@ void ata_port_pbar_desc(struct ata_port *ap, int bar, ssize_t offset,
        if (offset < 0)
                ata_port_desc(ap, "%s %s%llu@0x%llx", name, type, len, start);
        else
-               ata_port_desc(ap, "%s 0x%llx", name, start + offset);
+               ata_port_desc(ap, "%s 0x%llx", name,
+                               start + (unsigned long long)offset);
 }
 
 #endif /* CONFIG_PCI */