[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen stable-4.1] libelf: fix printing of pointers



commit f2b90b639b2c5aceeccda9e48b58dbe816151258
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Thu Jul 11 15:07:36 2013 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu Jul 11 15:07:36 2013 +0200

    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@xxxxxxxx>
    master commit: 59912eb06fda88af6c5ec16a2a382619d3829a7b
    master date: 2013-06-26 14:43:52 +0100
---
 xen/include/xen/libelf.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/xen/include/xen/libelf.h b/xen/include/xen/libelf.h
index 41fc513..1da66f7 100644
--- a/xen/include/xen/libelf.h
+++ b/xen/include/xen/libelf.h
@@ -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;
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.1

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.