sim/rx: use PRIx64 in printf format string
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 1 Feb 2021 11:23:53 +0000 (11:23 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 8 Feb 2021 11:01:07 +0000 (11:01 +0000)
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
sim/rx/reg.c

index 6b4b3d9aed8596f1df8cefe6f8756db6d2bc1dcd..c67b8d5fe77fcbe39437c27b8a961c67c707f5f4 100644 (file)
@@ -1,3 +1,8 @@
+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
index ce9be12649918d29f65feee8f26c5f3f4bebee9b..bdf2debac69df94e8870aca0bf348881b4091205 100644 (file)
@@ -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;
     }