* [PATCH] libelf: fix printing of pointers
@ 2013-06-21 10:21 Jan Beulich
2013-06-26 13:42 ` Ping: " Jan Beulich
2013-06-26 16:24 ` Ian Campbell
0 siblings, 2 replies; 4+ messages in thread
From: Jan Beulich @ 2013-06-21 10:21 UTC (permalink / raw)
To: xen-devel; +Cc: Keir Fraser, Ian Jackson
[-- Attachment #1: Type: text/plain, Size: 834 bytes --]
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>
--- 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 */
[-- Attachment #2: libelf-pointer-printing.patch --]
[-- Type: text/plain, Size: 864 bytes --]
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>
--- 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 */
[-- Attachment #3: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Ping: [PATCH] libelf: fix printing of pointers
2013-06-21 10:21 [PATCH] libelf: fix printing of pointers Jan Beulich
@ 2013-06-26 13:42 ` Jan Beulich
2013-06-26 16:27 ` Ian Campbell
2013-06-26 16:24 ` Ian Campbell
1 sibling, 1 reply; 4+ messages in thread
From: Jan Beulich @ 2013-06-26 13:42 UTC (permalink / raw)
To: Ian Jackson, Keir Fraser; +Cc: xen-devel
As fallout from the XSA-55 changes, I'd really like this to get into the
tree even if mostly cosmetic.
Jan
>>> On 21.06.13 at 12:21, "Jan Beulich" <JBeulich@suse.com> wrote:
> 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>
>
> --- 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 */
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] libelf: fix printing of pointers
2013-06-21 10:21 [PATCH] libelf: fix printing of pointers Jan Beulich
2013-06-26 13:42 ` Ping: " Jan Beulich
@ 2013-06-26 16:24 ` Ian Campbell
1 sibling, 0 replies; 4+ messages in thread
From: Ian Campbell @ 2013-06-26 16:24 UTC (permalink / raw)
To: Jan Beulich; +Cc: Ian Jackson, Keir Fraser, xen-devel
On Fri, 2013-06-21 at 11:21 +0100, Jan Beulich wrote:
> 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>
Seems pretty obvious. Acked + applied.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Ping: [PATCH] libelf: fix printing of pointers
2013-06-26 13:42 ` Ping: " Jan Beulich
@ 2013-06-26 16:27 ` Ian Campbell
0 siblings, 0 replies; 4+ messages in thread
From: Ian Campbell @ 2013-06-26 16:27 UTC (permalink / raw)
To: Jan Beulich; +Cc: Keir Fraser, Ian Jackson, xen-devel
On Wed, 2013-06-26 at 14:42 +0100, Jan Beulich wrote:
> As fallout from the XSA-55 changes, I'd really like this to get into the
> tree even if mostly cosmetic.
I applied, went to a meeting while it tested (along with some other
changes) and I've just pushed.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-06-26 16:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-21 10:21 [PATCH] libelf: fix printing of pointers Jan Beulich
2013-06-26 13:42 ` Ping: " Jan Beulich
2013-06-26 16:27 ` Ian Campbell
2013-06-26 16:24 ` Ian Campbell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.