mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 10:35:12 +08:00
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:
parent
bccec180ce
commit
6451541244
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user