]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
lib/log: Clean up the Log Facility API
authorVMware, Inc <>
Tue, 13 Mar 2012 20:03:21 +0000 (13:03 -0700)
committerDmitry Torokhov <dtor@vmware.com>
Wed, 14 Mar 2012 16:04:57 +0000 (09:04 -0700)
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
open-vm-tools/lib/include/log.h

index 574ba592c32f1f73e817479d982eae8589b9a959..14af967373bce3b775603e7bd611a24db2e869d7 100644 (file)
@@ -61,6 +61,10 @@ void LogV(uint32 routing,
           const char *fmt,
           va_list args);
 
+void Log_Level(uint32 routing,
+               const char *fmt,
+               ...) PRINTF_DECL(2, 3);
+
 
 /*
  * Handy wrapper functions.
@@ -71,27 +75,6 @@ void LogV(uint32 routing,
  * TODO: even Log and Warning become wrapper functions around LogV.
  */
 
-static INLINE void PRINTF_DECL(2, 3)
-Log_Level(uint32 routing,
-          const char *fmt,
-          ...)
-{
-   va_list ap;
-
-   va_start(ap, fmt);
-   LogV(routing, fmt, ap);
-   va_end(ap);
-}
-
-
-static INLINE void
-Log_String(uint32 routing,
-           const char *string)
-{
-   Log_Level(routing, "%s", string);
-}
-
-
 static INLINE void PRINTF_DECL(1, 2)
 Log_Panic(const char *fmt,
           ...)