From: Mike Frysinger <vapier@gentoo.org>
To: gdb-patches@sourceware.org
Subject: [PATCH/committed] sim: m68hc11: gencode: add printf markings
Date: Mon, 8 Jan 2024 21:25:46 -0500 [thread overview]
Message-ID: <20240109022546.7773-1-vapier@gentoo.org> (raw)
---
sim/m68hc11/gencode.c | 2 ++
1 file changed, 2 insertions(+)
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, ...)
{
--
2.43.0
reply other threads:[~2024-01-09 2:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20240109022546.7773-1-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).