From: Andrew Burgess Date: Mon, 1 Feb 2021 11:23:53 +0000 (+0000) Subject: sim/rx: use PRIx64 in printf format string X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ae41b4ce9f3e2baf7cb44db5ebd34147caf434f3;p=binutils-gdb.git 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. --- 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; }