diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-02-01 11:23:53 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-02-08 11:01:07 +0000 |
commit | ae41b4ce9f3e2baf7cb44db5ebd34147caf434f3 (patch) | |
tree | 01c492902afddae44d3a8bf555beb7505aeb55de /sim/rx | |
parent | 783a7b12d3463ebbc25c6c2c1006b6363ec538e3 (diff) | |
download | gdb-ae41b4ce9f3e2baf7cb44db5ebd34147caf434f3.zip gdb-ae41b4ce9f3e2baf7cb44db5ebd34147caf434f3.tar.gz gdb-ae41b4ce9f3e2baf7cb44db5ebd34147caf434f3.tar.bz2 |
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.
Diffstat (limited to 'sim/rx')
-rw-r--r-- | sim/rx/ChangeLog | 5 | ||||
-rw-r--r-- | sim/rx/reg.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog index 6b4b3d9..c67b8d5f 100644 --- a/sim/rx/ChangeLog +++ b/sim/rx/ChangeLog @@ -1,5 +1,10 @@ 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> + * reg.c (trace_register_changes): Use PRIx64 in printf format + string. + +2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com> + * syscalls.c (rx_syscall): Move declaration of some variables to the start of the enclosing block. * trace.c (load_file_and_line): Likewise. diff --git a/sim/rx/reg.c b/sim/rx/reg.c index ce9be12..bdf2deb 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; } |