sim: m68hc11: fix printf size warnings
GCC complains %llu is wrong for signed64, so switch to PRIi64.
This commit is contained in:
parent
b9e016f517
commit
683b8d961e
@ -1,3 +1,7 @@
|
|||||||
|
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>
|
2021-01-30 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* m68hc11_sim.c (cpu_set_sp): Add static markings.
|
* m68hc11_sim.c (cpu_set_sp): Add static markings.
|
||||||
|
@ -503,7 +503,7 @@ cycle_to_string (sim_cpu *cpu, signed64 t, int flags)
|
|||||||
if (t < LONG_MAX)
|
if (t < LONG_MAX)
|
||||||
sprintf (buf, "%9lu%s%s", (unsigned long) t, cycle_buf, time_buf);
|
sprintf (buf, "%9lu%s%s", (unsigned long) t, cycle_buf, time_buf);
|
||||||
else
|
else
|
||||||
sprintf (buf, "%llu%s%s", t, cycle_buf, time_buf);
|
sprintf (buf, "%" PRIi64 "%s%s", t, cycle_buf, time_buf);
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user