From: Kruti Date: Tue, 21 May 2024 05:58:12 +0000 (-0700) Subject: Change to common header file not applicable to open-vm-tools. X-Git-Tag: stable-12.5.0~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42ceedd78f9ccb39540c4ea12f40fba7c644a050;p=thirdparty%2Fopen-vm-tools.git Change to common header file not applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/include/log.h b/open-vm-tools/lib/include/log.h index 36ba86bd5..d9d67e922 100644 --- a/open-vm-tools/lib/include/log.h +++ b/open-vm-tools/lib/include/log.h @@ -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,