From: Mike Frysinger Date: Sun, 31 Jan 2021 22:31:25 +0000 (-0500) Subject: sim: cgen-trace: tweak printf call X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=64515412441a35e8e7ced67efe4e5c9c4c88370b;p=binutils-gdb.git 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. --- diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 12c00f087c8..6b07d2ff51d 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,7 @@ +2021-01-31 Mike Frysinger + + * cgen-trace.c (cgen_trace_insn): Add "%s" argument. + 2021-01-31 Stafford Horne * cgen-accfp.c (fixsfsi): Change res from unsigned32 to signed32. diff --git a/sim/common/cgen-trace.c b/sim/common/cgen-trace.c index 82abad61b6c..0f18c502c63 100644 --- a/sim/common/cgen-trace.c +++ b/sim/common/cgen-trace.c @@ -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; }