From: Olaf Hering Subject: [PATCH] tools/gdbsx: define format strings for aarch64 Date: Sun, 2 Feb 2014 09:19:51 +0100 Message-ID: <1391329191-22566-1-git-send-email-olaf@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Olaf Hering , Ian.Jackson@eu.citrix.com, Ian.Campbell@citrix.com List-Id: xen-devel@lists.xenproject.org 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 --- 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