sim: cgen-trace: tweak printf call

GCC warns that we pass a non-string literal as the format string,
so add an explicit "%s" to make it happy.
This commit is contained in:
Mike Frysinger 2021-01-31 17:31:25 -05:00
parent bccec180ce
commit 6451541244
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2021-01-31 Mike Frysinger <vapier@gentoo.org>
* cgen-trace.c (cgen_trace_insn): Add "%s" argument.
2021-01-31 Stafford Horne <shorne@gmail.com>
* cgen-accfp.c (fixsfsi): Change res from unsigned32 to signed32.

View File

@ -169,7 +169,7 @@ cgen_trace_insn (SIM_CPU *cpu, const struct cgen_insn *opcode,
if (CGEN_INSN_VIRTUAL_P (opcode))
{
trace_prefix (CPU_STATE (cpu), cpu, NULL_CIA, pc, 0,
NULL, 0, CGEN_INSN_NAME (opcode));
NULL, 0, "%s", CGEN_INSN_NAME (opcode));
return;
}