From: Jan Beulich Date: Fri, 21 Jun 2013 10:21:40 +0000 (+0100) Subject: libelf: fix printing of pointers X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~6701 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=59912eb06fda88af6c5ec16a2a382619d3829a7b;p=xen.git libelf: fix printing of pointers Printing them as decimal number, the more with 0x prefix, is confusing and presumably relatively useless to most of us. Signed-off-by: Jan Beulich --- diff --git a/xen/include/xen/libelf.h b/xen/include/xen/libelf.h index 7c04ac3531..2a6fa54b02 100644 --- a/xen/include/xen/libelf.h +++ b/xen/include/xen/libelf.h @@ -82,13 +82,13 @@ typedef uintptr_t elf_ptrval; /* Provides a type declaration for a HANDLE. */ #ifdef __XEN__ -# define ELF_PRPTRVAL "lu" +# define ELF_PRPTRVAL "lx" /* - * PRIuPTR is misdefined in xen/include/xen/inttypes.h, on 32-bit, - * to "u", when in fact uintptr_t is an unsigned long. + * PRIxPTR is misdefined in xen/include/xen/inttypes.h, on 32-bit, + * to "x", when in fact uintptr_t is an unsigned long. */ #else -# define ELF_PRPTRVAL PRIuPTR +# define ELF_PRPTRVAL PRIxPTR #endif /* printf format a la PRId... for a PTRVAL */