mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
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>
This commit is contained in:
parent
190973dc71
commit
d94e96e7cf
1 changed files with 2 additions and 1 deletions
3
disas.c
3
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. */
|
/* We abuse the FILE parameter to pass a GString. */
|
||||||
GString *s = (GString *)stream;
|
GString *s = (GString *)stream;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue