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
--