]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes to common header files not applicable to open-vm-tools.
authorJohn Wolfe <jwolfe@vmware.com>
Tue, 22 Sep 2020 21:54:06 +0000 (14:54 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Tue, 22 Sep 2020 21:54:06 +0000 (14:54 -0700)
open-vm-tools/lib/include/log.h
open-vm-tools/lib/include/loglevel_userVars.h

index b5c76b0ff997f9d10ed6cc02e8653d8b22ba9625..352d76d2195728ba8427330548e21653e061644d 100644 (file)
@@ -547,4 +547,31 @@ void Log_LoadModuleFilters(struct CfgInterface *cfgIf);
    #define LOG_ROUTING_BITS(level) (level)
 #endif
 
+#ifndef VMW_LOG_HELPER_FUNCTIONS
+#define VMW_LOG_HELPER_FUNCTIONS
 
+/*
+ * Helper functions for module level filtering.
+ */
+
+static INLINE void
+LogV_Module(int32 level,
+            const char *fmt,
+            va_list args)
+{
+   LogV(LOG_ROUTING_BITS(level), fmt, args);
+}
+
+static INLINE void PRINTF_DECL(2, 3)
+Log_LevelModule(int32 level,
+                const char *fmt,
+                ...)
+{
+   va_list ap;
+
+   va_start(ap, fmt);
+   LogV_Module(level, fmt, ap);
+   va_end(ap);
+}
+
+#endif
index 2150c49ae71dba1376318176038837d3b364573f..c993ba322086ef7bbaec6cfc5e528513e70b4f36 100644 (file)
@@ -94,6 +94,7 @@
    LOGLEVEL_VAR(extcfgdevice), \
    LOGLEVEL_VAR(fakeDma), \
    LOGLEVEL_VAR(filtlib), \
+   LOGLEVEL_VAR(FiltLibTestLog), \
    LOGLEVEL_VAR(flashram), \
    LOGLEVEL_VAR(floppy), \
    LOGLEVEL_VAR(fsresx), \
    LOGLEVEL_VAR(hostctl), \
    LOGLEVEL_VAR(hostonly), \
    LOGLEVEL_VAR(hpet), \
+   LOGLEVEL_VAR(Heap), \
    LOGLEVEL_VAR(http), \
    LOGLEVEL_VAR(ich7m), \
    LOGLEVEL_VAR(inputdevtap), \