- Timestamp:
- Apr 2, 2008 4:40:00 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 29238
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/log/log.cpp
r6541 r7709 35 35 # include <iprt/semaphore.h> 36 36 # include <iprt/thread.h> 37 # include <iprt/mp.h> 37 38 #endif 38 39 #ifdef IN_RING3 … … 1196 1197 { "dec", sizeof("dec" ) - 1, RTLOGFLAGS_DECIMAL_TS, false }, 1197 1198 { "hex", sizeof("hex" ) - 1, RTLOGFLAGS_DECIMAL_TS, true }, 1199 { "cpuid", sizeof("cpuid" ) - 1, RTLOGFLAGS_PREFIX_CPUID, false }, 1198 1200 { "pid", sizeof("pid" ) - 1, RTLOGFLAGS_PREFIX_PID, false }, 1199 1201 { "flagno", sizeof("flagno" ) - 1, RTLOGFLAGS_PREFIX_FLAG_NO, false }, … … 1871 1873 /* 1872 1874 * Flush the buffer if there isn't enough room for the maximum prefix config. 1873 * Max is 198, add a couple of extra bytes.1875 * Max is 214, add a couple of extra bytes. 1874 1876 */ 1875 if (cb < 198+ 16)1877 if (cb < 214 + 16) 1876 1878 { 1877 1879 rtlogFlush(pLogger); … … 2038 2040 while (cch++ < 8); /* +17 */ 2039 2041 } 2042 if (pLogger->fFlags & RTLOGFLAGS_PREFIX_CPUID) 2043 { 2044 #if defined(RT_ARCH_AMD64) || defined(RT_ARCH_X86) 2045 const uint8_t idCpu = ASMGetApicId(); 2046 #else 2047 const RTCPUID idCpu = RTMpCpuId(); 2048 #endif 2049 psz += RTStrFormatNumber(psz, idCpu, 16, sizeof(idCpu) * 2, 0, RTSTR_F_ZEROPAD); 2050 } 2040 2051 if (pLogger->fFlags & RTLOGFLAGS_PREFIX_FLAG_NO) 2041 2052 {
Note:
See TracChangeset
for help on using the changeset viewer.