LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] pcmcia: fix i82092 printk format
@ 2008-02-08 23:22 Randy Dunlap
  2008-02-08 23:53 ` Andrew Morton
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2008-02-08 23:22 UTC (permalink / raw)
  To: lkml; +Cc: arjan, akpm, linux-pcmcia

From: Randy Dunlap <randy.dunlap@oracle.com>

Fix printk format warnings:
linux-2.6.24-git19/drivers/pcmcia/i82092.c:650: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'resource_size_t'
linux-2.6.24-git19/drivers/pcmcia/i82092.c:650: warning: format '%lx' expects type 'long unsigned int', but argument 4 has type 'resource_size_t'

Fix very long source line size.
Fix spacing within the printk format string.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 drivers/pcmcia/i82092.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

--- linux-2.6.24-git19.orig/drivers/pcmcia/i82092.c
+++ linux-2.6.24-git19/drivers/pcmcia/i82092.c
@@ -647,7 +647,9 @@ static int i82092aa_set_mem_map(struct p
 	if ( (mem->card_start > 0x3ffffff) || (region.start > region.end) ||
 	     (mem->speed > 1000) ) {
 		leave("i82092aa_set_mem_map: invalid address / speed");
-		printk("invalid mem map for socket %i : %lx to %lx with a start of %x \n",sock,region.start, region.end, mem->card_start);
+		printk("invalid mem map for socket %i: %llx to %llx with a start of %x\n",
+			sock, (unsigned long long)region.start,
+			(unsigned long long)region.end, mem->card_start);
 		return -EINVAL;
 	}
 	

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

end of thread, other threads:[~2008-02-08 23:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-08 23:22 [PATCH] pcmcia: fix i82092 printk format Randy Dunlap
2008-02-08 23:53 ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).