All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools/gdbsx: define format strings for aarch64
@ 2014-02-02  8:19 Olaf Hering
  2014-02-02 10:24 ` Ian Campbell
  0 siblings, 1 reply; 7+ messages in thread
From: Olaf Hering @ 2014-02-02  8:19 UTC (permalink / raw)
  To: xen-devel; +Cc: Olaf Hering, Ian.Jackson, Ian.Campbell

gx_main.c: In function '_do_qRcmd_req':
gx_main.c:119:13: error: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t' [-Werror=format=]
             sprintf(buf1, "pgd3val set to: "XGF64"\n", pgd3val);
             ^
gx_main.c:121:13: error: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t' [-Werror=format=]
             sprintf(buf1, "Invalid  pgd3val "XGF64"\n", pgd3val);

Signed-off-by: Olaf Hering <olaf@aepfle.de>
---
 tools/debugger/gdbsx/xg/xg_public.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/debugger/gdbsx/xg/xg_public.h b/tools/debugger/gdbsx/xg/xg_public.h
index 6236d08..046e21b 100644
--- a/tools/debugger/gdbsx/xg/xg_public.h
+++ b/tools/debugger/gdbsx/xg/xg_public.h
@@ -23,7 +23,7 @@
 #define XGTRC1(...)  \
            do {(xgtrc_on==2) ? (xgtrc(__FUNCTION__,__VA_ARGS__)):0;} while (0)
 
-#if defined(__x86_64__)
+#if defined(__x86_64__) || defined(__aarch64__)
     #define  XGFM64  "%lx"
     #define  XGF64   "%016lx"
 #else

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-02-07 10:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-02  8:19 [PATCH] tools/gdbsx: define format strings for aarch64 Olaf Hering
2014-02-02 10:24 ` Ian Campbell
2014-02-02 10:28   ` Olaf Hering
2014-02-02 10:36     ` Ian Campbell
2014-02-07  1:12       ` Mukesh Rathor
2014-02-07  7:54         ` Olaf Hering
2014-02-07 10:08         ` 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.