From ae41b4ce9f3e2baf7cb44db5ebd34147caf434f3 Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Mon, 1 Feb 2021 11:23:53 +0000 Subject: [PATCH] sim/rx: use PRIx64 in printf format string Silence a GCC compiler warning by using PRIx64 in printf format string instead of hard coded "llx". sim/rx/ChangeLog: * reg.c (trace_register_changes): Use PRIx64 in printf format string. --- sim/rx/ChangeLog | 5 +++++ sim/rx/reg.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog index 6b4b3d9aed8..c67b8d5fe77 100644 --- a/sim/rx/ChangeLog +++ b/sim/rx/ChangeLog @@ -1,3 +1,8 @@ +2021-02-08 Andrew Burgess + + * reg.c (trace_register_changes): Use PRIx64 in printf format + string. + 2021-02-08 Andrew Burgess * syscalls.c (rx_syscall): Move declaration of some variables to diff --git a/sim/rx/reg.c b/sim/rx/reg.c index ce9be126499..bdf2debac69 100644 --- a/sim/rx/reg.c +++ b/sim/rx/reg.c @@ -548,8 +548,8 @@ trace_register_changes (void) if (oldregs.r_acc != regs.r_acc) { if (tag) { printf ("%s", tag); tag = 0; } - printf(" acc %016llx:", oldregs.r_acc); - printf("%016llx", regs.r_acc); + printf(" acc %016" PRIx64 ":", oldregs.r_acc); + printf("%016" PRIx64, regs.r_acc); oldregs.r_acc = regs.r_acc; } -- 2.30.2