]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
lib/log: PRINTF_DECL
authorVMware, Inc <>
Tue, 19 Oct 2010 19:48:46 +0000 (12:48 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Tue, 19 Oct 2010 19:48:46 +0000 (12:48 -0700)
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/include/log.h

index 143a766564cb3ffcdf81726ccbc8d1aafc88d59f..82d2cca5a600d2128f416c4cdef02b6790bf79c6 100644 (file)
@@ -67,7 +67,7 @@ void LogV(int level,
  * TODO: even Log and Warning become wrapper functions around LogV.
  */
 
-static INLINE void
+static INLINE void PRINTF_DECL(2, 3)
 Log_Level(int level,
           const char *fmt,
           ...)
@@ -88,7 +88,7 @@ Log_String(int level,
 }
 
 
-static INLINE void
+static INLINE void PRINTF_DECL(1, 2)
 Log_Panic(const char *fmt,
           ...)
 {
@@ -100,7 +100,7 @@ Log_Panic(const char *fmt,
 }
 
 
-static INLINE void
+static INLINE void PRINTF_DECL(1, 2)
 Log_Error(const char *fmt,
           ...)
 {
@@ -112,7 +112,7 @@ Log_Error(const char *fmt,
 }
 
 
-static INLINE void
+static INLINE void PRINTF_DECL(1, 2)
 Log_Verbose(const char *fmt,
             ...)
 {
@@ -124,7 +124,7 @@ Log_Verbose(const char *fmt,
 }
 
 
-static INLINE void
+static INLINE void PRINTF_DECL(1, 2)
 Log_Trivia(const char *fmt,
            ...)
 {