public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: gdb-patches@sourceware.org
Subject: [PATCH 07/13] sim: cgen: add printf attributes in a few more calls
Date: Sat, 26 Jun 2021 23:30:45 -0400	[thread overview]
Message-ID: <20210627033051.3150-7-vapier@gentoo.org> (raw)
In-Reply-To: <20210627033051.3150-1-vapier@gentoo.org>

---
 sim/common/cgen-trace.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sim/common/cgen-trace.h b/sim/common/cgen-trace.h
index fcf50e98078c..c617e7e21e12 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__
-- 
2.31.1


  parent reply	other threads:[~2021-06-27  3:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-27  3:30 [PATCH 01/13] sim: bpf: fix mixed decls & code warnings (and style) Mike Frysinger
2021-06-27  3:30 ` [PATCH 02/13] sim: bpf: add explicit casts when using explicit formats Mike Frysinger
2021-06-27  3:30 ` [PATCH 03/13] sim: cgen: sync prototypes with implementation Mike Frysinger
2021-06-27  3:30 ` [PATCH 04/13] sim: cgen: always leverage the ops prototypes Mike Frysinger
2021-06-27  3:30 ` [PATCH 05/13] sim: cgen: always leverage the mem prototypes Mike Frysinger
2021-06-27  3:30 ` [PATCH 06/13] sim: cgen: constify trace strings Mike Frysinger
2021-06-27  3:30 ` Mike Frysinger [this message]
2021-06-27  3:30 ` [PATCH 08/13] sim: cgen: add asserts to fix unused engine warnings Mike Frysinger
2021-06-27  3:30 ` [PATCH 09/13] sim: cgen: suppress trace non-literal printf warning Mike Frysinger
2021-06-27  3:30 ` [PATCH 10/13] sim: bpf: delete unused function Mike Frysinger
2021-06-27  3:30 ` [PATCH 11/13] sim: bpf: include more local headers & fix broken funcs Mike Frysinger
2021-06-27  3:30 ` [PATCH 12/13] sim: bpf/cris: include cgen-mem in decoders Mike Frysinger
2021-06-27  3:30 ` [PATCH 13/13] sim: bpf: enable -Werror usage Mike Frysinger
2021-06-27  4:32   ` Simon Marchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210627033051.3150-7-vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).