Changeset 20859 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Jun 23, 2009 5:29:34 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/log/log.cpp
r20853 r20859 192 192 * @param ... Format arguments. 193 193 */ 194 RTDECL(int) RTLogCreateExV(PRTLOGGER *ppLogger, RTUINTfFlags, const char *pszGroupSettings,194 RTDECL(int) RTLogCreateExV(PRTLOGGER *ppLogger, uint32_t fFlags, const char *pszGroupSettings, 195 195 const char *pszEnvVarBase, unsigned cGroups, const char * const * papszGroups, 196 RTUINTfDestFlags, char *pszErrorMsg, size_t cchErrorMsg, const char *pszFilenameFmt, va_list args)196 uint32_t fDestFlags, char *pszErrorMsg, size_t cchErrorMsg, const char *pszFilenameFmt, va_list args) 197 197 { 198 198 int rc; … … 505 505 * @param ... Format arguments. 506 506 */ 507 RTDECL(int) RTLogCreate(PRTLOGGER *ppLogger, RTUINTfFlags, const char *pszGroupSettings,507 RTDECL(int) RTLogCreate(PRTLOGGER *ppLogger, uint32_t fFlags, const char *pszGroupSettings, 508 508 const char *pszEnvVarBase, unsigned cGroups, const char * const * papszGroups, 509 RTUINTfDestFlags, const char *pszFilenameFmt, ...)509 uint32_t fDestFlags, const char *pszFilenameFmt, ...) 510 510 { 511 511 va_list args; … … 536 536 * @param ... Format arguments. 537 537 */ 538 RTDECL(int) RTLogCreateEx(PRTLOGGER *ppLogger, RTUINTfFlags, const char *pszGroupSettings,538 RTDECL(int) RTLogCreateEx(PRTLOGGER *ppLogger, uint32_t fFlags, const char *pszGroupSettings, 539 539 const char *pszEnvVarBase, unsigned cGroups, const char * const * papszGroups, 540 RTUINTfDestFlags, char *pszErrorMsg, size_t cchErrorMsg, const char *pszFilenameFmt, ...)540 uint32_t fDestFlags, char *pszErrorMsg, size_t cchErrorMsg, const char *pszFilenameFmt, ...) 541 541 { 542 542 va_list args; … … 560 560 { 561 561 int rc; 562 RTUINTiGroup;562 uint32_t iGroup; 563 563 RTSEMFASTMUTEX MutexSem; 564 564 … … 642 642 */ 643 643 RTDECL(int) RTLogCloneRC(PRTLOGGER pLogger, PRTLOGGERRC pLoggerRC, size_t cbLoggerRC, 644 RTRCPTR pfnLoggerRCPtr, RTRCPTR pfnFlushRCPtr, RTUINTfFlags)644 RTRCPTR pfnLoggerRCPtr, RTRCPTR pfnFlushRCPtr, uint32_t fFlags) 645 645 { 646 646 /* … … 779 779 * @param fDestFlags The destination flags. 780 780 */ 781 RTDECL(int) RTLogCreateForR0(PRTLOGGER pLogger, size_t cbLogger, PFNRTLOGGER pfnLogger, PFNRTLOGFLUSH pfnFlush, RTUINT fFlags, RTUINT fDestFlags) 781 RTDECL(int) RTLogCreateForR0(PRTLOGGER pLogger, size_t cbLogger, PFNRTLOGGER pfnLogger, PFNRTLOGFLUSH pfnFlush, 782 uint32_t fFlags, uint32_t fDestFlags) 782 783 { 783 784 /* … … 803 804 pLogger->pszFilename = NULL; 804 805 pLogger->papszGroups = NULL; 805 pLogger->cMaxGroups = ( RTUINT)((cbLogger - RT_OFFSETOF(RTLOGGER, afGroups[0])) / sizeof(pLogger->afGroups[0]));806 pLogger->cMaxGroups = (uint32_t)((cbLogger - RT_OFFSETOF(RTLOGGER, afGroups[0])) / sizeof(pLogger->afGroups[0])); 806 807 pLogger->cGroups = 1; 807 808 pLogger->afGroups[0] = 0; … … 1756 1757 uint32_t cb = sizeof(pThis->achScratch) - pThis->offScratch - 1; /* minus 1 - for the string terminator. */ 1757 1758 if (cb > cbChars) 1758 cb = ( RTUINT)cbChars;1759 cb = (uint32_t)cbChars; 1759 1760 1760 1761 /* copy */ … … 1900 1901 1901 1902 /* advance */ 1902 pLogger->offScratch += ( RTUINT)cb;1903 pLogger->offScratch += (uint32_t)cb; 1903 1904 cbRet += cb; 1904 1905 cbChars -= cb; … … 2258 2259 cb = psz - &pLogger->achScratch[pLogger->offScratch]; 2259 2260 Assert(cb <= 198); 2260 pLogger->offScratch += ( RTUINT)cb;2261 pLogger->offScratch += (uint32_t)cb; 2261 2262 cb = sizeof(pLogger->achScratch) - pLogger->offScratch - 1; 2262 2263 } … … 2298 2299 2299 2300 /* advance */ 2300 pLogger->offScratch += ( RTUINT)cb;2301 pLogger->offScratch += (uint32_t)cb; 2301 2302 cbRet += cb; 2302 2303 cbChars -= cb;
Note:
See TracChangeset
for help on using the changeset viewer.