qemu-log: Add GCC format attribute
authorStefan Weil <sw@weilnetz.de>
Sat, 23 Jun 2012 18:41:10 +0000 (20:41 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Sun, 24 Jun 2012 12:16:51 +0000 (12:16 +0000)
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>
qemu-log.h

index 2ed19d1..4cdc7c7 100644 (file)
@@ -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);