[PATCH v2 5/7] sim/m68hc11: Add ATTRIBUTE_PRINTF

Tsukasa OI via Gdb-patches
2022-10-06T06:38:07Z

This commit adds ATTRIBUTE_PRINTF to a printf-like function.
---
sim/m68hc11/m68hc11_sim.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sim/m68hc11/m68hc11_sim.c b/sim/m68hc11/m68hc11_sim.c
index 6ec45f78206..2770f17262a 100644
--- a/sim/m68hc11/m68hc11_sim.c
+++ b/sim/m68hc11/m68hc11_sim.c
@@ -1017,7 +1017,7 @@ cpu_single_step (sim_cpu *cpu)
}

/* VARARGS */
-void
+void ATTRIBUTE_PRINTF (4, 5)
sim_memory_error (sim_cpu *cpu, SIM_SIGNAL excep,
uint16_t addr, const char *message, ...)
{
--
2.34.1