aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2013-07-11 13:41:54 +0200
committerJan Beulich <jbeulich@suse.com>2013-07-11 13:41:54 +0200
commit7f6b1086489c0382c3f8c6a2026a6d0eaa53ea97 (patch)
tree52330c16aa077a49a15e7b1d5b71d8f46917b63d
parent78748fe8846627ddf3cccdaa3a1ff907a6132568 (diff)
downloadxen-7f6b1086489c0382c3f8c6a2026a6d0eaa53ea97.tar.gz
xen-7f6b1086489c0382c3f8c6a2026a6d0eaa53ea97.tar.bz2
xen-7f6b1086489c0382c3f8c6a2026a6d0eaa53ea97.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> master commit: 59912eb06fda88af6c5ec16a2a382619d3829a7b master date: 2013-06-26 14:43:52 +0100
-rw-r--r--xen/include/xen/libelf.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/xen/include/xen/libelf.h b/xen/include/xen/libelf.h
index 174f8dacbb..36b2b3fee0 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 */