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

index 960efe2addf42e1975773f9d6c7940ae63b97701..df770fd5b19e732fbf0cfda388d07993a8e7fc00 100644 (file)
@@ -410,7 +410,7 @@ Bool
 Log_Outputting(void);
 
 Bool
-Log_IsLevelOutputting(int level);
+Log_IsRoutingEnabled(uint32 routing);
 
 const char *
 Log_GetFileName(void);
@@ -524,7 +524,7 @@ void Log_LoadModuleFilters(struct CfgInterface *cfgIf);
  *     Be sure to have only one include of "log.h" in a file.
  *
  *     If all uses of LOG are converted to use the module specific filters,
- *     remeber to remove "loglevel_user.h".
+ *     remember to remove "loglevel_user.h".
  *
  *  2) Use LogV and/or Log_Level and use the LOG_ROUTING_BITS macro for the
  *     routing argument OR use the helper functions Log_LevelModule and/or
@@ -556,6 +556,10 @@ void Log_LoadModuleFilters(struct CfgInterface *cfgIf);
    #define LOG_ROUTING_BITS(level) (level)
 #endif
 
+/*
+ * Helper functions for module level filters.
+ */
+
 #if defined(Log_LevelModule)
    #undef Log_LevelModule
 #endif
@@ -569,3 +573,12 @@ void Log_LoadModuleFilters(struct CfgInterface *cfgIf);
 
 #define Log_LevelModule(level, ...) \
    Log_Level(LOG_ROUTING_BITS(level), __VA_ARGS__)
+
+#if defined(Log_IsRoutingEnabledModule)
+   #undef Log_IsRoutingEnabledModule
+#endif
+
+#define Log_IsRoutingEnabledModule(level) \
+   Log_IsRoutingEnabled(LOG_ROUTING_BITS(level))
+
+