mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] tpm_infineon: fix printk format warning
@ 2006-01-20  4:24 Randy.Dunlap
  2006-01-20  4:37 ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: Randy.Dunlap @ 2006-01-20  4:24 UTC (permalink / raw)
  To: lkml; +Cc: akpm, kjhall

From: Randy Dunlap <rdunlap@xenotime.net>

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'

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
---
 drivers/char/tpm/tpm_infineon.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

--- linux-2616-rc1-secur.orig/drivers/char/tpm/tpm_infineon.c
+++ linux-2616-rc1-secur/drivers/char/tpm/tpm_infineon.c
@@ -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;


---

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] tpm_infineon: fix printk format warning
  2006-01-20  4:24 [PATCH] tpm_infineon: fix printk format warning Randy.Dunlap
@ 2006-01-20  4:37 ` Andrew Morton
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2006-01-20  4:37 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: linux-kernel, kjhall

"Randy.Dunlap" <rdunlap@xenotime.net> wrote:
>
> -				"Could not set IO-ports to %04x\n",
>  +				"Could not set IO-ports to %lx\n",
>  

I stuck a "0x" in there too.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-01-20  4:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-20  4:24 [PATCH] tpm_infineon: fix printk format warning Randy.Dunlap
2006-01-20  4:37 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®