]> xenbits.xensource.com Git - xen.git/commitdiff
libelf: fix printing of pointers
authorJan Beulich <jbeulich@suse.com>
Thu, 11 Jul 2013 13:07:36 +0000 (15:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 11 Jul 2013 13:07:36 +0000 (15:07 +0200)
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>
master commit: 59912eb06fda88af6c5ec16a2a382619d3829a7b
master date: 2013-06-26 14:43:52 +0100

xen/include/xen/libelf.h

index 41fc513ad6f83896393ff5715d6902db66a011f8..1da66f7b4b788f18eae200b4fb0d464f6e18cc0b 100644 (file)
@@ -76,14 +76,14 @@ typedef void elf_log_callback(struct elf_binary*, void *caller_data,
 #ifdef __XEN__
 # ifdef __i386__
 typedef uint32_t elf_uintptr_t;
-#  define ELF_PRPTRVAL PRIu32
+#  define ELF_PRPTRVAL PRIx32
 # else
 typedef uint64_t elf_uintptr_t;
-#  define ELF_PRPTRVAL PRIu64
+#  define ELF_PRPTRVAL PRIx64
 # endif
 #else
 typedef uintptr_t elf_uintptr_t;
-# define ELF_PRPTRVAL PRIuPTR
+# define ELF_PRPTRVAL PRIxPTR
 #endif
 
 typedef elf_uintptr_t elf_ptrval;