aboutsummaryrefslogtreecommitdiff
path: root/sim/common/cgen-trace.h
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common/cgen-trace.h')
-rw-r--r--sim/common/cgen-trace.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/common/cgen-trace.h b/sim/common/cgen-trace.h
index fcf50e9..c617e7e 100644
--- a/sim/common/cgen-trace.h
+++ b/sim/common/cgen-trace.h
@@ -26,7 +26,7 @@ void cgen_trace_insn (SIM_CPU *, const struct cgen_insn *,
const struct argbuf *, IADDR);
void cgen_trace_extract (SIM_CPU *, IADDR, const char *, ...);
void cgen_trace_result (SIM_CPU *, const char *, int, ...);
-void cgen_trace_printf (SIM_CPU *, const char *fmt, ...);
+void cgen_trace_printf (SIM_CPU *, const char *fmt, ...) ATTRIBUTE_PRINTF_2;
/* Trace instruction results. */
#define CGEN_TRACE_RESULT_P(cpu, abuf) \
@@ -75,7 +75,7 @@ typedef struct {
} SFILE;
/* String printer for the disassembler. */
-extern int sim_disasm_sprintf (SFILE *, const char *, ...);
+extern int sim_disasm_sprintf (SFILE *, const char *, ...) ATTRIBUTE_PRINTF_2;
/* For opcodes based disassemblers. */
#ifdef __BFD_H_SEEN__