qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] qemu-log: Add GCC format attribute


From: Stefan Weil
Subject: [Qemu-devel] [PATCH] qemu-log: Add GCC format attribute
Date: Sat, 23 Jun 2012 20:41:10 +0200

The new inline function qemu_log_vprintf should use this attribute.

Signed-off-by: Stefan Weil <address@hidden>
---
 qemu-log.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/qemu-log.h b/qemu-log.h
index 40f8b7b..db0f23d 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);
-- 
1.7.10




reply via email to

[Prev in Thread] Current Thread [Next in Thread]