Changeset 21375 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Jul 7, 2009 10:46:18 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 49731
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/log/log.cpp
r21337 r21375 87 87 #endif 88 88 #ifdef IN_RING0 89 static void rtR0LogLoggerExFallback(uint32_t fDestFlags, const char *pszFormat, va_list va);89 static void rtR0LogLoggerExFallback(uint32_t fDestFlags, uint32_t fFlags, const char *pszFormat, va_list va); 90 90 #endif 91 91 static void rtlogFlush(PRTLOGGER pLogger); … … 1687 1687 #ifdef IN_RING0 1688 1688 if (pLogger->fDestFlags & ~RTLOGDEST_FILE) 1689 rtR0LogLoggerExFallback(pLogger->fDestFlags, p szFormat, args);1689 rtR0LogLoggerExFallback(pLogger->fDestFlags, pLogger->fFlags, pszFormat, args); 1690 1690 #endif 1691 1691 return; … … 1826 1826 * for the present, because it's too much hazzle. 1827 1827 * 1828 * @param pLogger The destination flags. 1828 * @param fDestFlags The destination flags. 1829 * @param fFlags The logger flags. 1829 1830 * @param pszFormat The format string. 1830 1831 * @param va The format arguments. 1831 1832 */ 1832 static void rtR0LogLoggerExFallback(uint32_t fDestFlags, const char *pszFormat, va_list va)1833 static void rtR0LogLoggerExFallback(uint32_t fDestFlags, uint32_t fFlags, const char *pszFormat, va_list va) 1833 1834 { 1834 1835 RTR0LOGLOGGERFALLBACK This; 1835 1836 This.fDestFlags = fDestFlags; 1836 This.offScratch = 0; 1837 1838 /* fallback indicator. */ 1839 This.offScratch = 2; 1840 This.achScratch[0] = '['; 1841 This.achScratch[1] = 'F'; 1842 1843 /* selected prefixes */ 1844 if (fFlags & RTLOGFLAGS_PREFIX_PID) 1845 { 1846 RTPROCESS Process = RTProcSelf(); 1847 This.achScratch[This.offScratch++] = ' '; 1848 This.offScratch += RTStrFormatNumber(&This.achScratch[This.offScratch], Process, 16, sizeof(RTPROCESS) * 2, 0, RTSTR_F_ZEROPAD); 1849 } 1850 if (fFlags & RTLOGFLAGS_PREFIX_TID) 1851 { 1852 RTNATIVETHREAD Thread = RTThreadNativeSelf(); 1853 This.achScratch[This.offScratch++] = ' '; 1854 This.offScratch += RTStrFormatNumber(&This.achScratch[This.offScratch], Thread, 16, sizeof(RTNATIVETHREAD) * 2, 0, RTSTR_F_ZEROPAD); 1855 } 1856 1857 This.achScratch[This.offScratch++] = ']'; 1858 This.achScratch[This.offScratch++] = ' '; 1859 1837 1860 RTLogFormatV(rtR0LogLoggerExFallbackOutput, &This, pszFormat, va); 1838 1861 }
Note:
See TracChangeset
for help on using the changeset viewer.