Changeset 91789 in vbox for trunk/src/VBox/Runtime/common/log/log.cpp
- Timestamp:
- Oct 17, 2021 6:16:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/log/log.cpp
r90974 r91789 1355 1355 1356 1356 1357 RTDECL(int) RTLogCreateEx(PRTLOGGER *ppLogger, const char *pszEnvVarBase, uint64_t fFlags, const char *pszGroupSettings,1358 unsigned cGroups, const char * const *papszGroups, uint32_t cMaxEntriesPerGroup,1359 uint32_t cBufDescs, PRTLOGBUFFERDESC paBufDescs, uint32_t fDestFlags,1360 PFNRTLOGPHASE pfnPhase, uint32_t cHistory, uint64_t cbHistoryFileMax, uint32_t cSecsHistoryTimeSlot,1361 PRTERRINFO pErrInfo, const char *pszFilenameFmt, ...)1362 {1363 va_list va;1364 int rc;1365 1366 va_start(va, pszFilenameFmt);1367 rc = RTLogCreateExV(ppLogger, pszEnvVarBase, fFlags, pszGroupSettings, cGroups, papszGroups, cMaxEntriesPerGroup,1368 cBufDescs, paBufDescs, fDestFlags,1369 pfnPhase, cHistory, cbHistoryFileMax, cSecsHistoryTimeSlot,1370 pErrInfo, pszFilenameFmt, va);1371 va_end(va);1372 return rc;1373 }1374 RT_EXPORT_SYMBOL(RTLogCreateEx);1375 1376 1377 1357 /** 1378 1358 * Destroys a logger instance. … … 2056 2036 #ifdef IN_RING0 2057 2037 2058 RTR0DECL(int) RTLogSetR0ThreadName F(PRTLOGGER pLogger, const char *pszNameFmt, ...)2038 RTR0DECL(int) RTLogSetR0ThreadNameV(PRTLOGGER pLogger, const char *pszNameFmt, va_list va) 2059 2039 { 2060 2040 PRTLOGGERINTERNAL pLoggerInt = (PRTLOGGERINTERNAL)pLogger; … … 2062 2042 if (pLoggerInt) 2063 2043 { 2064 va_list va;2065 va_start(va, pszNameFmt);2066 2067 2044 rc = rtlogLock(pLoggerInt); 2068 2045 if (RT_SUCCESS(rc)) … … 2072 2049 rc = cch > 0 ? VINF_SUCCESS : VERR_BUFFER_OVERFLOW; 2073 2050 } 2074 2075 va_end(va);2076 2051 } 2077 2052 else … … 2079 2054 return rc; 2080 2055 } 2081 RT_EXPORT_SYMBOL(RTLogSetR0ThreadName F);2056 RT_EXPORT_SYMBOL(RTLogSetR0ThreadNameV); 2082 2057 2083 2058
Note:
See TracChangeset
for help on using the changeset viewer.