aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sim/m68hc11/ChangeLog4
-rw-r--r--sim/m68hc11/dv-m68hc11tim.c2
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;
}