Skip to contentSkip to conversation

tpm_infineon: fix printk format warning

PATCH In review Randy.Dunlap 2 participants 2 messages Jan 20, 2006 TPM device driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tpm_infineon: fix printk format warning

From: Randy Dunlap <[email protected]>

Fix printk format warning:
drivers/char/tpm/tpm_infineon.c:443: warning: format '%04x' expects type 'unsigned int', but argument 4 has type 'long unsigned int'

---
 drivers/char/tpm/tpm_infineon.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/char/tpm/tpm_infineon.c +1 -1
@@ -441,7 +441,7 @@ static int __devinit tpm_inf_pnp_probe(s
 
 		if ((ioh << 8 | iol) != tpm_inf.base) {
 			dev_err(&dev->dev,
-				"Could not set IO-ports to %04x\n",
+				"Could not set IO-ports to %lx\n",
 				tpm_inf.base);
 			release_region(tpm_inf.base, TPM_INF_PORT_LEN);
 			return -EIO;

---

#1 lore raw

Review

Quoted 4 lines · Randy.Dunlap
(quoted diff) +0 -1
-				"Could not set IO-ports to %04x\n",
 +				"Could not set IO-ports to %lx\n",

I stuck a "0x" in there too.