Changeset 90862 in vbox for trunk/src/VBox/Runtime/common/log/log.cpp
- Timestamp:
- Aug 25, 2021 12:37:59 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/log/log.cpp
r90861 r90862 1009 1009 RTDECL(int) RTLogCreateExV(PRTLOGGER *ppLogger, const char *pszEnvVarBase, uint64_t fFlags, const char *pszGroupSettings, 1010 1010 uint32_t cGroups, const char * const *papszGroups, uint32_t cMaxEntriesPerGroup, 1011 PFNRTLOGFLUSH pfnFlush,uint32_t cBufDescs, PRTLOGBUFFERDESC paBufDescs, uint32_t fDestFlags,1011 uint32_t cBufDescs, PRTLOGBUFFERDESC paBufDescs, uint32_t fDestFlags, 1012 1012 PFNRTLOGPHASE pfnPhase, uint32_t cHistory, uint64_t cbHistoryFileMax, uint32_t cSecsHistoryTimeSlot, 1013 1013 PRTERRINFO pErrInfo, const char *pszFilenameFmt, va_list args) … … 1095 1095 pLoggerInt->cbSelf = sizeof(RTLOGGERINTERNAL); 1096 1096 pLoggerInt->hSpinMtx = NIL_RTSEMSPINMUTEX; 1097 pLoggerInt->pfnFlush = pfnFlush;1097 pLoggerInt->pfnFlush = NULL; 1098 1098 pLoggerInt->pfnPrefix = NULL; 1099 1099 pLoggerInt->pvPrefixUserArg = NULL; … … 1345 1345 rc = RTLogCreateExV(ppLogger, pszEnvVarBase, fFlags, pszGroupSettings, cGroups, papszGroups, 1346 1346 UINT32_MAX /*cMaxEntriesPerGroup*/, 1347 NULL /*pfnFlush*/,0 /*cBufDescs*/, NULL /*paBufDescs*/, fDestFlags,1347 0 /*cBufDescs*/, NULL /*paBufDescs*/, fDestFlags, 1348 1348 NULL /*pfnPhase*/, 0 /*cHistory*/, 0 /*cbHistoryFileMax*/, 0 /*cSecsHistoryTimeSlot*/, 1349 1349 NULL /*pErrInfo*/, pszFilenameFmt, va); … … 1356 1356 RTDECL(int) RTLogCreateEx(PRTLOGGER *ppLogger, const char *pszEnvVarBase, uint64_t fFlags, const char *pszGroupSettings, 1357 1357 unsigned cGroups, const char * const *papszGroups, uint32_t cMaxEntriesPerGroup, 1358 PFNRTLOGFLUSH pfnFlush,uint32_t cBufDescs, PRTLOGBUFFERDESC paBufDescs, uint32_t fDestFlags,1358 uint32_t cBufDescs, PRTLOGBUFFERDESC paBufDescs, uint32_t fDestFlags, 1359 1359 PFNRTLOGPHASE pfnPhase, uint32_t cHistory, uint64_t cbHistoryFileMax, uint32_t cSecsHistoryTimeSlot, 1360 1360 PRTERRINFO pErrInfo, const char *pszFilenameFmt, ...) … … 1365 1365 va_start(va, pszFilenameFmt); 1366 1366 rc = RTLogCreateExV(ppLogger, pszEnvVarBase, fFlags, pszGroupSettings, cGroups, papszGroups, cMaxEntriesPerGroup, 1367 pfnFlush,cBufDescs, paBufDescs, fDestFlags,1367 cBufDescs, paBufDescs, fDestFlags, 1368 1368 pfnPhase, cHistory, cbHistoryFileMax, cSecsHistoryTimeSlot, 1369 1369 pErrInfo, pszFilenameFmt, va); … … 2054 2054 2055 2055 #ifdef IN_RING0 2056 2056 2057 RTR0DECL(int) RTLogSetR0ThreadNameF(PRTLOGGER pLogger, const char *pszNameFmt, ...) 2057 2058 { … … 2078 2079 } 2079 2080 RT_EXPORT_SYMBOL(RTLogSetR0ThreadNameF); 2081 2082 2083 RTR0DECL(int) RTLogSetR0ProgramStart(PRTLOGGER pLogger, uint64_t nsStart) 2084 { 2085 PRTLOGGERINTERNAL pLoggerInt = (PRTLOGGERINTERNAL)pLogger; 2086 int rc; 2087 if (pLoggerInt) 2088 { 2089 rc = rtlogLock(pLoggerInt); 2090 if (RT_SUCCESS(rc)) 2091 { 2092 pLoggerInt->nsR0ProgramStart = nsStart; 2093 rtlogUnlock(pLoggerInt); 2094 } 2095 } 2096 else 2097 rc = VERR_INVALID_PARAMETER; 2098 return rc; 2099 } 2100 RT_EXPORT_SYMBOL(RTLogSetR0ProgramStart); 2101 2080 2102 #endif /* IN_RING0 */ 2081 2082 2103 2083 2104 /**
Note:
See TracChangeset
for help on using the changeset viewer.