Re: [PATCH] x86: small unifications of address printing

From: Ingo Molnar
Date: Tue Jul 01 2008 - 16:27:13 EST



* Vegard Nossum <vegard.nossum@xxxxxxxxx> wrote:

> (resend to lkml)
>
> From: Vegard Nossum <vegard.nossum@xxxxxxxxx>
> Date: Tue, 1 Jul 2008 14:51:08 +0200
> Subject: [PATCH] x86: small unifications of address printing
>
> 'man 3 printf' tells me that %p should be printed as if by %#x, but
> this is not true for the kernel, which does not use the '0x' prefix
> for the %p conversion specifier.
>
> A small cast to (void *) is also prettier than #ifdef/#else/#endif.

applied to tip/x86/debug - thanks Vegard.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/