From: John Wolfe Date: Fri, 11 Sep 2020 19:11:04 +0000 (-0700) Subject: Backout the previous header file change. X-Git-Tag: stable-11.2.0~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7903a7eaee51685e70abfd7c227d1828c34e9373;p=thirdparty%2Fopen-vm-tools.git Backout the previous header file change. --- diff --git a/open-vm-tools/lib/include/log.h b/open-vm-tools/lib/include/log.h index e7465cdfb..55e71ab81 100644 --- a/open-vm-tools/lib/include/log.h +++ b/open-vm-tools/lib/include/log.h @@ -94,15 +94,13 @@ typedef enum { #define VMW_LOG_LEVEL(routing) ((routing) & VMW_LOG_LEVEL_MASK) #define VMW_LOG_MODULE(routing) (((routing) >> VMW_LOG_LEVEL_BITS)) -void -LogV(uint32 routing, - const char *fmt, - va_list args); - -void -Log_Level(uint32 routing, +void LogV(uint32 routing, const char *fmt, - ...) PRINTF_DECL(2, 3); + va_list args); + +void Log_Level(uint32 routing, + const char *fmt, + ...) PRINTF_DECL(2, 3); /* * Log = Log_Info @@ -225,55 +223,44 @@ typedef struct LogOutput LogOutput; struct CfgInterface *Log_CfgInterface(void); -int32 -Log_SetStderrLevel(int32 level); +int32 Log_SetStderrLevel(int32 level); -int32 -Log_GetStderrLevel(void); +int32 Log_GetStderrLevel(void); -LogOutput * -Log_NewStdioOutput(const char *appPrefix, - struct Dictionary *params, - struct CfgInterface *cfgIf); +LogOutput *Log_NewStdioOutput(const char *appPrefix, + struct Dictionary *params, + struct CfgInterface *cfgIf); -LogOutput * -Log_NewSyslogOutput(const char *appPrefix, - const char *instanceName, - struct Dictionary *params, - struct CfgInterface *cfgIf); +LogOutput *Log_NewSyslogOutput(const char *appPrefix, + const char *instanceName, + struct Dictionary *params, + struct CfgInterface *cfgIf); -LogOutput * -Log_NewFileOutput(const char *appPrefix, - const char *instanceName, - struct Dictionary *params, - struct CfgInterface *cfgIf); +LogOutput *Log_NewFileOutput(const char *appPrefix, + const char *instanceName, + struct Dictionary *params, + struct CfgInterface *cfgIf); typedef void (LogCustomMsgFunc)(int level, const char *msg); -LogOutput * -Log_NewCustomOutput(const char *instanceName, - LogCustomMsgFunc *msgFunc, - int minLogLevel); +LogOutput *Log_NewCustomOutput(const char *instanceName, + LogCustomMsgFunc *msgFunc, + int minLogLevel); -Bool -Log_FreeOutput(LogOutput *toOutput); +Bool Log_FreeOutput(LogOutput *toOutput); -Bool -Log_AddOutput(LogOutput *output); +Bool Log_AddOutput(LogOutput *output); -Bool -Log_ReplaceOutput(LogOutput *fromOutput, - LogOutput *toOutput, - Bool copyOver); +Bool Log_ReplaceOutput(LogOutput *fromOutput, + LogOutput *toOutput, + Bool copyOver); -int32 -Log_SetOutputLevel(LogOutput *output, - int32 level); +int32 Log_SetOutputLevel(LogOutput *output, + int32 level); -Bool -Log_SetVmxStatsData(LogOutput *output, - VmxStatsInfo *vmxStats); +Bool Log_SetVmxStatsData(LogOutput *output, + VmxStatsInfo *vmxStats); /* * The most common Log Facility client usage is via the "InitWith" functions. @@ -288,11 +275,10 @@ Log_SetVmxStatsData(LogOutput *output, * correct. */ -void -Log_SetProductInfo(const char *appName, - const char *appVersion, - const char *buildNumber, - const char *compilationOption); +void Log_SetProductInfo(const char *appName, + const char *appVersion, + const char *buildNumber, + const char *compilationOption); static INLINE void Log_SetProductInfoSimple(void) @@ -304,10 +290,9 @@ Log_SetProductInfoSimple(void) } -LogOutput * -Log_InitWithCustomInt(struct CfgInterface *cfgIf, - LogCustomMsgFunc *msgFunc, - int minLogLevel); +LogOutput *Log_InitWithCustomInt(struct CfgInterface *cfgIf, + LogCustomMsgFunc *msgFunc, + int minLogLevel); static INLINE LogOutput * @@ -320,11 +305,10 @@ Log_InitWithCustom(struct CfgInterface *cfgIf, return Log_InitWithCustomInt(cfgIf, msgFunc, minLogLevel); } -LogOutput * -Log_InitWithFileInt(const char *appPrefix, - struct Dictionary *dict, - struct CfgInterface *cfgIf, - Bool boundNumFiles); +LogOutput *Log_InitWithFileInt(const char *appPrefix, + struct Dictionary *dict, + struct CfgInterface *cfgIf, + Bool boundNumFiles); static INLINE LogOutput * Log_InitWithFile(const char *appPrefix, @@ -337,10 +321,9 @@ Log_InitWithFile(const char *appPrefix, return Log_InitWithFileInt(appPrefix, dict, cfgIf, boundNumFiles); } -LogOutput * -Log_InitWithFileSimpleInt(const char *appPrefix, - struct CfgInterface *cfgIf, - const char *fileName); +LogOutput *Log_InitWithFileSimpleInt(const char *appPrefix, + struct CfgInterface *cfgIf, + const char *fileName); static INLINE LogOutput * Log_InitWithFileSimple(const char *fileName, @@ -351,10 +334,9 @@ Log_InitWithFileSimple(const char *fileName, return Log_InitWithFileSimpleInt(appPrefix, Log_CfgInterface(), fileName); } -LogOutput * -Log_InitWithSyslogInt(const char *appPrefix, - struct Dictionary *dict, - struct CfgInterface *cfgIf); +LogOutput *Log_InitWithSyslogInt(const char *appPrefix, + struct Dictionary *dict, + struct CfgInterface *cfgIf); static INLINE LogOutput * Log_InitWithSyslog(const char *appPrefix, @@ -366,10 +348,9 @@ Log_InitWithSyslog(const char *appPrefix, return Log_InitWithSyslogInt(appPrefix, dict, cfgIf); } -LogOutput * -Log_InitWithSyslogSimpleInt(const char *appPrefix, - struct CfgInterface *cfgIf, - const char *syslogID); +LogOutput *Log_InitWithSyslogSimpleInt(const char *appPrefix, + struct CfgInterface *cfgIf, + const char *syslogID); static INLINE LogOutput * Log_InitWithSyslogSimple(const char *syslogID, @@ -380,11 +361,10 @@ Log_InitWithSyslogSimple(const char *syslogID, return Log_InitWithSyslogSimpleInt(appPrefix, Log_CfgInterface(), syslogID); } -LogOutput * -Log_InitWithStdioSimpleInt(const char *appPrefix, - struct CfgInterface *cfgIf, - const char *minLevel, - Bool withLinePrefix); +LogOutput *Log_InitWithStdioSimpleInt(const char *appPrefix, + struct CfgInterface *cfgIf, + const char *minLevel, + Bool withLinePrefix); static INLINE LogOutput * Log_InitWithStdioSimple(const char *appPrefix, @@ -397,45 +377,34 @@ Log_InitWithStdioSimple(const char *appPrefix, withLinePrefix); } -void -Log_Exit(void); +void Log_Exit(void); -Bool -Log_Outputting(void); +Bool Log_Outputting(void); -Bool -Log_IsLevelOutputting(int level); +Bool Log_IsLevelOutputting(int level); -const char * -Log_GetFileName(void); +const char *Log_GetFileName(void); -const char * -Log_GetOutputFileName(LogOutput *output); +const char *Log_GetOutputFileName(LogOutput *output); -void -Log_SkipLocking(Bool skipLocking); +void Log_SkipLocking(Bool skipLocking); -void -Log_DisableThrottling(void); +void Log_DisableThrottling(void); -void -Log_DisableVmxStats(void); +void Log_DisableVmxStats(void); -uint32 -Log_MaxLineLength(void); +uint32 Log_MaxLineLength(void); -size_t -Log_MakeTimeString(Bool millisec, - char *buf, - size_t max); +size_t Log_MakeTimeString(Bool millisec, + char *buf, + size_t max); typedef Bool (LogOwnerFunc)(void *userData, const char *fileName); -Bool -Log_BoundNumFiles(struct LogOutput *output, - LogOwnerFunc *func, - void *userData); +Bool Log_BoundNumFiles(struct LogOutput *output, + LogOwnerFunc *func, + void *userData); #if defined(VMX86_SERVER) #define LOG_KEEPOLD 6 // Old log files to keep around; ESX value @@ -453,55 +422,46 @@ Log_BoundNumFiles(struct LogOutput *output, * Assemble a line. */ -void * -Log_BufBegin(void); +void *Log_BufBegin(void); -void -Log_BufAppend(void *acc, - const char *fmt, - ...) PRINTF_DECL(2, 3); +void Log_BufAppend(void *acc, + const char *fmt, + ...) PRINTF_DECL(2, 3); -void -Log_BufEndLevel(void *acc, - uint32 routing); +void Log_BufEndLevel(void *acc, + uint32 routing); /* * Debugging */ -void -Log_HexDump(const char *prefix, - const void *data, - size_t size); - -void -Log_HexDumpLevel(uint32 routing, - const char *prefix, +void Log_HexDump(const char *prefix, const void *data, size_t size); -void -Log_Time(VmTimeType *time, - int count, - const char *message); +void Log_HexDumpLevel(uint32 routing, + const char *prefix, + const void *data, + size_t size); + +void Log_Time(VmTimeType *time, + int count, + const char *message); -void -Log_Histogram(uint32 n, - uint32 histo[], - int nbuckets, - const char *message, - int *count, - int limit); +void Log_Histogram(uint32 n, + uint32 histo[], + int nbuckets, + const char *message, + int *count, + int limit); typedef Bool (GetOpId)(size_t maxStringLen, char *opId); -void -Log_RegisterOpIdFunction(GetOpId *getOpIdFunc); +void Log_RegisterOpIdFunction(GetOpId *getOpIdFunc); -void -Log_LoadModuleFilters(struct CfgInterface *cfgIf); +void Log_LoadModuleFilters(struct CfgInterface *cfgIf); #endif /* !VMM */