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 /sim/m68hc11/dv-m68hc11tim.c | |
parent | b9e016f517c8e7f4ce2da4cf06d9f35b908428fc (diff) | |
download | fsf-binutils-gdb-683b8d961efb3349f606e65f3fae57e84a615a14.zip fsf-binutils-gdb-683b8d961efb3349f606e65f3fae57e84a615a14.tar.gz fsf-binutils-gdb-683b8d961efb3349f606e65f3fae57e84a615a14.tar.bz2 |
sim: m68hc11: fix printf size warnings
GCC complains %llu is wrong for signed64, so switch to PRIi64.
Diffstat (limited to 'sim/m68hc11/dv-m68hc11tim.c')
-rw-r--r-- | sim/m68hc11/dv-m68hc11tim.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |