diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-01-30 10:30:55 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-01-30 10:40:26 -0500 |
commit | 683b8d961efb3349f606e65f3fae57e84a615a14 (patch) | |
tree | 050cd79306093f34b580493602853f6f476c9325 | |
parent | b9e016f517c8e7f4ce2da4cf06d9f35b908428fc (diff) | |
download | gdb-683b8d961efb3349f606e65f3fae57e84a615a14.zip gdb-683b8d961efb3349f606e65f3fae57e84a615a14.tar.gz gdb-683b8d961efb3349f606e65f3fae57e84a615a14.tar.bz2 |
sim: m68hc11: fix printf size warnings
GCC complains %llu is wrong for signed64, so switch to PRIi64.
-rw-r--r-- | sim/m68hc11/ChangeLog | 4 | ||||
-rw-r--r-- | sim/m68hc11/dv-m68hc11tim.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/m68hc11/ChangeLog b/sim/m68hc11/ChangeLog index e83e11e..0063e8e 100644 --- a/sim/m68hc11/ChangeLog +++ b/sim/m68hc11/ChangeLog @@ -1,5 +1,9 @@ 2021-01-30 Mike Frysinger <vapier@gentoo.org> + * dv-m68hc11tim.c (cycle_to_string): Change llu to PRIi64. + +2021-01-30 Mike Frysinger <vapier@gentoo.org> + * m68hc11_sim.c (cpu_set_sp): Add static markings. (cpu_get_reg, cpu_get_src_reg, cpu_set_dst_reg, cpu_get_indexed_operand_addr, cpu_get_indexed_operand8): Likewise. diff --git a/sim/m68hc11/dv-m68hc11tim.c b/sim/m68hc11/dv-m68hc11tim.c index b0d032e..cd8274f 100644 --- a/sim/m68hc11/dv-m68hc11tim.c +++ b/sim/m68hc11/dv-m68hc11tim.c @@ -503,7 +503,7 @@ cycle_to_string (sim_cpu *cpu, signed64 t, int flags) if (t < LONG_MAX) sprintf (buf, "%9lu%s%s", (unsigned long) t, cycle_buf, time_buf); else - sprintf (buf, "%llu%s%s", t, cycle_buf, time_buf); + sprintf (buf, "%" PRIi64 "%s%s", t, cycle_buf, time_buf); return buf; } |