From: VMware, Inc <> Date: Tue, 13 Mar 2012 20:03:21 +0000 (-0700) Subject: lib/log: Clean up the Log Facility API X-Git-Tag: 2012.03.13-651368~61 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8edef0b4332aedd2c0749c7545330ff43c082b27;p=thirdparty%2Fopen-vm-tools.git lib/log: Clean up the Log Facility API Signed-off-by: Dmitry Torokhov --- diff --git a/open-vm-tools/lib/include/log.h b/open-vm-tools/lib/include/log.h index 574ba592c..14af96737 100644 --- a/open-vm-tools/lib/include/log.h +++ b/open-vm-tools/lib/include/log.h @@ -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, ...)