drivers/ata/libata-eh.c: fix printk warning
PATCH 1/9 drivers/ata/libata-eh.c: fix printk warning
From: Andrew Morton <[email protected]>
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 <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/ata/libata-eh.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/ata/libata-eh.c renamed from drivers/ata/libata-eh.c~drivers-ata-libata-ehc-fix-printk-warning +2 -1
@@ -231,7 +231,8 @@ void ata_port_pbar_desc(struct ata_portif (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 */
_
Quoted 16 lines · [email protected] wrote:
From: Andrew Morton <[email protected]>
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 <[email protected]>Signed-off-by Andrew Morton <[email protected]>---
drivers/ata/libata-eh.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)diff -puN
drivers/ata/libata-eh.c~drivers-ata-libata-ehc-fix-printk-warningdrivers/ata/libata-eh.c
drivers/ata/libata-eh.c void ata_port_pbar_desc(struct ata_port · line 236
Quoted 7 lines
drivers/ata/libata-eh.c renamed from drivers/ata/libata-eh.c~drivers-ata-libata-ehc-fix-printk-warning +2
-1@@ -231,7 +231,8 @@ void ata_port_pbar_desc(struct ata_portif (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); }
applied #upstream