aboutsummaryrefslogtreecommitdiff
path: root/disas.c
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2022-12-19 08:02:00 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2023-01-11 10:44:33 +0100
commitd94e96e7cf02c8fe3e5ea75da5216b4bad79aa9e (patch)
tree73d124e7b7bbd8437352af65dcd5bf7591af813e /disas.c
parent190973dc71b91ccb973fe2f2ce82c20a8e057a84 (diff)
disas: add G_GNUC_PRINTF to gstring_printf
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20221219130205.687815-2-berrange@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'disas.c')
-rw-r--r--disas.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/disas.c b/disas.c
index 94d3b45042..3b31315f40 100644
--- a/disas.c
+++ b/disas.c
@@ -239,7 +239,8 @@ void target_disas(FILE *out, CPUState *cpu, target_ulong code,
}
}
-static int gstring_printf(FILE *stream, const char *fmt, ...)
+static int G_GNUC_PRINTF(2, 3)
+gstring_printf(FILE *stream, const char *fmt, ...)
{
/* We abuse the FILE parameter to pass a GString. */
GString *s = (GString *)stream;