Thibaut VARENE wrote:
On Tue, Dec 2, 2008 at 1:00 AM, John David Anglin
<dave@xxxxxxxxxxxxxxxxxx> wrote:
Are there some standard 32 and 64 bit defines for format strings? Or, do we
always want 16 hex digits?
In traps.c we used to do this for the regs dump:
#ifdef __LP64__
#define RFMT "%016lx"
#else
#define RFMT "%08lx"
#endif
and then sprintf(p, " " RFMT, (i+j) == 0 ? 0 : regs->gr[i + j]);
I guess a similar trick could do, to some extent?
An alternative possibility would be to use pointers, e.g.
printk("addr 0x%p\n", (void *)x);
That way it would 32 or 64bit addresses, depending if we have a 32 or
64bit kernel.
Helge
--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html