On Mon, Dec 01, 2008 at 11:54:25AM +0100, 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? The prettiest way to do it would be to add a %p handler for resource_size_t args, cheat on the pointing bit, and clean up the in-tree users of %llx/ull-casts. -- 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