projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
190973d
)
disas: add G_GNUC_PRINTF to gstring_printf
author
Daniel P. Berrangé
<berrange@redhat.com>
Mon, 19 Dec 2022 13:02:00 +0000
(08:02 -0500)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Wed, 11 Jan 2023 09:44:33 +0000
(10:44 +0100)
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>
disas.c
patch
|
blob
|
history
diff --git
a/disas.c
b/disas.c
index 94d3b4504260565134a621ec5a801d8fab180fe9..3b31315f40388ad8012252db7faf30ffea1e8215 100644
(file)
--- 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;