[PATCH] PCI hotplug printk format

From
Randy Dunlap <hidden>
Date
2008-10-24 01:15:59
Also in
lkml
Reply to
Stephen Rothwell, 2008-10-23
I made this patch for linux-next, but now mainline has this same code/warning.


From: Randy Dunlap <redacted>

Fix printk format warning:

linux-next-20081023/drivers/pci/hotplug/acpiphp_ibm.c:207: warning: format '%08lx' expects type 'long unsigned int', but argument 3 has type 'long long unsigned int'

Signed-off-by: Randy Dunlap <redacted>
---
 drivers/pci/hotplug/acpiphp_ibm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-next-20081023.orig/drivers/pci/hotplug/acpiphp_ibm.c
+++ linux-next-20081023/drivers/pci/hotplug/acpiphp_ibm.c
@@ -204,7 +204,7 @@ static int ibm_set_attention_status(stru
 		err("APLS evaluation failed:  0x%08x\n", stat);
 		return -ENODEV;
 	} else if (!rc) {
-		err("APLS method failed:  0x%08lx\n", rc);
+		err("APLS method failed:  0x%08llx\n", rc);
 		return -ERANGE;
 	}
 	return 0;
Thread (53 messages) 53 messages, 12 authors, last reply 2008-11-01
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help