]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Change to common header file not applicable to open-vm-tools.
authorKruti <kpendharkar@vmware.com>
Tue, 21 May 2024 05:58:12 +0000 (22:58 -0700)
committerKruti <kpendharkar@vmware.com>
Tue, 21 May 2024 05:58:12 +0000 (22:58 -0700)
open-vm-tools/lib/include/log.h

index 36ba86bd5665bc68fd7777ed171bb4a2c5bc15b0..d9d67e922d75e5c06f1e10833863721197032d0b 100644 (file)
@@ -496,7 +496,6 @@ Log_SetProductInfoSimple(void)
                       ProductState_GetCompilationOption());
 }
 
-
 LogOutput *
 Log_InitWithCustomInt(struct CfgInterface *cfgIf,
                       LogCustomMsgFunc *msgFunc,
@@ -513,6 +512,22 @@ Log_InitWithCustom(struct CfgInterface *cfgIf,
    return Log_InitWithCustomInt(cfgIf, msgFunc, minLogLevel);
 }
 
+LogOutput *
+Log_InitWithCustomIntEx(struct CfgInterface *cfgIf,
+                        LogCustomMsgFuncEx *msgFunc,
+                        int minLogLevel);
+
+
+static INLINE LogOutput *
+Log_InitWithCustomEx(struct CfgInterface *cfgIf,
+                     LogCustomMsgFuncEx *msgFunc,
+                     int minLogLevel)
+{
+   Log_SetProductInfoSimple();
+
+   return Log_InitWithCustomIntEx(cfgIf, msgFunc, minLogLevel);
+}
+
 LogOutput *
 Log_InitWithFileInt(const char *appPrefix,
                     struct Dictionary *dict,