]> git.proxmox.com Git - qemu.git/blobdiff - qemu-char.h
Use GCC_FMT_ATTR (format checking)
[qemu.git] / qemu-char.h
index 6ea01ba179c7cbfddfa390e7d2b18ecaaae876b7..18ad12bb5d1ac1a98584d306944ef6ef0b3b0bf4 100644 (file)
@@ -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,