Re: linux-next: Tree for April 10 (arch/x86)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Randy Dunlap <randy.dunlap@...>
Cc: Ingo Molnar <mingo@...>, Stephen Rothwell <sfr@...>, mingo <mingo@...>, tglx <tglx@...>, <linux-next@...>, LKML <linux-kernel@...>
Date: Monday, April 14, 2008 - 4:40 am

On Fri, Apr 11, 2008 at 08:19:01AM -0700, Randy Dunlap wrote:

You can define macros and use them in the format string.
In this case
		printk(KERN_WARNING "ioremap: invalid physical address %" PRIRESOURCESZ "\n",
		       phys_addr);
(see the PRI* macros in
http://www.opengroup.org/onlinepubs/009695399/basedefs/inttypes.h.html
and e.g. glibc inttypes.h to see how it is defined).  Other alternative is
custom format length modifiers, but unfortunately there is no easy way ATM
to teach GCC about them.

	Jakub
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
linux-next: Tree for April 10, Stephen Rothwell, (Thu Apr 10, 4:14 am)
Re: linux-next: Tree for April 10 (arch/x86), Randy Dunlap, (Thu Apr 10, 6:09 pm)
Re: linux-next: Tree for April 10 (arch/x86), Ingo Molnar, (Fri Apr 11, 3:46 am)
Re: linux-next: Tree for April 10 (arch/x86), Randy Dunlap, (Fri Apr 11, 11:19 am)
Re: linux-next: Tree for April 10 (arch/x86), Jakub Jelinek, (Mon Apr 14, 4:40 am)
Re: linux-next: Tree for April 10 (arch/x86), Randy Dunlap, (Mon Apr 14, 6:28 pm)
Re: linux-next: Tree for April 10 (arch/x86), Al Viro, (Fri Apr 11, 11:26 am)
Re: linux-next: Tree for April 10 (arch/x86), Ingo Molnar, (Mon Apr 14, 4:12 am)
Re: linux-next: Tree for April 10 (arch/x86), Al Viro, (Mon Apr 14, 4:22 am)
Re: linux-next: Tree for April 10 (arch/x86), Ingo Molnar, (Mon Apr 14, 4:34 am)
Re: linux-next: Tree for April 10 (arch/x86), Jakub Jelinek, (Mon Apr 14, 4:43 am)
Re: linux-next: Tree for April 10 (arch/x86), Al Viro, (Mon Apr 14, 5:30 am)
Re: linux-next: Tree for April 10 (arch/x86), David Miller, (Mon Apr 14, 5:37 am)
Re: linux-next: Tree for April 10 (ftrace), Randy Dunlap, (Thu Apr 10, 6:07 pm)
Re: linux-next: Tree for April 10: generic pci_enable_resour..., Mariusz Kozlowski, (Thu Apr 10, 3:34 pm)
Re: linux-next: Tree for April 10: generic pci_enable_resour..., Stephen Rothwell, (Mon Apr 14, 12:49 am)
[BUG] linux-next: April 10 - kernel oops at kmem_cache_all..., Kamalesh Babulal, (Thu Apr 10, 2:07 pm)
Re: [BUG] linux-next: April 10 - kernel oops at kmem_cache..., Kamalesh Babulal, (Mon Apr 14, 9:14 am)
Re: linux-next: Tree for April 10, Greg KH, (Thu Apr 10, 1:42 pm)
Re: [BUG] linux-next: Tree for April 10 - kernel panic while..., Bartlomiej Zolnierkiewicz..., (Thu Apr 10, 8:03 am)
Re: [BUG] linux-next: Tree for April 10 - kernel panic while..., Bartlomiej Zolnierkiewicz..., (Thu Apr 10, 1:14 pm)
Re: [BUG] linux-next: Tree for April 10 - kernel panic while..., Bartlomiej Zolnierkiewicz..., (Thu Apr 10, 3:16 pm)