diff options
author | Stefan Weil <weil@mail.berlios.de> | 2010-09-23 21:28:05 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-10-03 06:34:51 +0000 |
commit | 8b7968f7c4ac8c07cad6a1a0891d38cf239a2839 (patch) | |
tree | 4a061bb5e911a88f914c106afd2a8c9ba9127835 /qemu-char.h | |
parent | e5924d8980e0bd027f2f12fa702ec1c555538230 (diff) |
Use GCC_FMT_ATTR (format checking)
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qemu-char.h')
-rw-r--r-- | qemu-char.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qemu-char.h b/qemu-char.h index 6ea01ba179..18ad12bb5d 100644 --- a/qemu-char.h +++ b/qemu-char.h @@ -76,7 +76,8 @@ CharDriverState *qemu_chr_open_opts(QemuOpts *opts, void (*init)(struct CharDriverState *s)); CharDriverState *qemu_chr_open(const char *label, const char *filename, void (*init)(struct CharDriverState *s)); void qemu_chr_close(CharDriverState *chr); -void qemu_chr_printf(CharDriverState *s, const char *fmt, ...); +void qemu_chr_printf(CharDriverState *s, const char *fmt, ...) + GCC_FMT_ATTR(2, 3); int qemu_chr_write(CharDriverState *s, const uint8_t *buf, int len); void qemu_chr_send_event(CharDriverState *s, int event); void qemu_chr_add_handlers(CharDriverState *s, |