diff options
author | Stefan Weil <sw@weilnetz.de> | 2012-06-23 20:41:10 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-06-24 12:16:51 +0000 |
commit | 726f8cbf868ecd6b6e57fcf8854b9b0e35c9a064 (patch) | |
tree | fa8440b83b3160a15027fa31eb514a2c78fd0394 /qemu-log.h | |
parent | 4e469a438f40a53dc6217fa5c3d456861b00d80c (diff) |
qemu-log: Add GCC format attribute
The new inline function qemu_log_vprintf should use this attribute.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qemu-log.h')
-rw-r--r-- | qemu-log.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qemu-log.h b/qemu-log.h index 2ed19d1578..4cdc7c7a47 100644 --- a/qemu-log.h +++ b/qemu-log.h @@ -51,7 +51,8 @@ void GCC_FMT_ATTR(1, 2) qemu_log(const char *fmt, ...); /* vfprintf-like logging function */ -static inline void qemu_log_vprintf(const char *fmt, va_list va) +static inline void GCC_FMT_ATTR(1, 0) +qemu_log_vprintf(const char *fmt, va_list va) { if (qemu_logfile) { vfprintf(qemu_logfile, fmt, va); |