[PATCH/committed] sim: m68hc11: gencode: add printf markings

Message ID 20240109022546.7773-1-vapier@gentoo.org
State New
Headers
Series [PATCH/committed] sim: m68hc11: gencode: add printf markings |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 warning Patch is already merged
linaro-tcwg-bot/tcwg_gdb_build--master-arm warning Patch is already merged

Commit Message

Mike Frysinger Jan. 9, 2024, 2:25 a.m. UTC
  ---
 sim/m68hc11/gencode.c | 2 ++
 1 file changed, 2 insertions(+)
  

Patch

diff --git a/sim/m68hc11/gencode.c b/sim/m68hc11/gencode.c
index ecd8f7bbf4f3..27e40d48fd39 100644
--- a/sim/m68hc11/gencode.c
+++ b/sim/m68hc11/gencode.c
@@ -1144,6 +1144,7 @@  static int current_insn_size = 0;
 
 /* Fatal error message and exit.  This method is called when an inconsistency
    is detected in the generation table.	 */
+ATTRIBUTE_PRINTF_2
 static void
 fatal_error (const struct m6811_opcode_def *opcode, const char *msg, ...)
 {
@@ -1166,6 +1167,7 @@  fatal_error (const struct m6811_opcode_def *opcode, const char *msg, ...)
 
 
 /* Format and pretty print for the code generation.  (printf like format).  */
+ATTRIBUTE_PRINTF_3
 static void
 print (FILE *fp, int col, const char *msg, ...)
 {