aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-01-31 17:31:25 -0500
committerMike Frysinger <vapier@gentoo.org>2021-01-31 17:31:44 -0500
commit64515412441a35e8e7ced67efe4e5c9c4c88370b (patch)
tree7d60ecd5c0fa13293468ed7d5daff48c41c0d52b /sim/common
parentbccec180ce9593ccdf652ce3a625f6e0542ccf78 (diff)
downloadgdb-64515412441a35e8e7ced67efe4e5c9c4c88370b.zip
gdb-64515412441a35e8e7ced67efe4e5c9c4c88370b.tar.gz
gdb-64515412441a35e8e7ced67efe4e5c9c4c88370b.tar.bz2
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.
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/ChangeLog4
-rw-r--r--sim/common/cgen-trace.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 12c00f0..6b07d2f 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -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.
diff --git a/sim/common/cgen-trace.c b/sim/common/cgen-trace.c
index 82abad6..0f18c50 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;
}