diff options
author | Jan Beulich <JBeulich@suse.com> | 2013-06-21 11:21:40 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-06-26 14:43:52 +0100 |
commit | 59912eb06fda88af6c5ec16a2a382619d3829a7b (patch) | |
tree | 8d260f91ae02c7bb5d6c8e70a63c8f3967a27491 /xen/include/xen | |
parent | cb9ac9fda371beee0ec7753841684063cebe1da3 (diff) | |
download | xen-59912eb06fda88af6c5ec16a2a382619d3829a7b.tar.gz xen-59912eb06fda88af6c5ec16a2a382619d3829a7b.tar.bz2 xen-59912eb06fda88af6c5ec16a2a382619d3829a7b.zip |
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 <jbeulich@suse.com>
Diffstat (limited to 'xen/include/xen')
-rw-r--r-- | xen/include/xen/libelf.h | 8 |
1 files changed, 4 insertions, 4 deletions
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 */ |