Changeset 8953
- Timestamp:
- 05/20/08 15:55:09 (8 months ago)
- Files:
-
- trunk/include/iprt/log.h (modified) (2 diffs)
- trunk/src/VBox/VMM/VMMR0/VMMR0.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/include/iprt/log.h
r8663 r8953 446 446 } \ 447 447 } while (0) 448 # define LogItAlways(pvInst, fFlags, fmtargs) \ 449 do \ 450 { \ 451 register PRTLOGGER LogIt_pLogger = (PRTLOGGER)(pvInst) ? (PRTLOGGER)(pvInst) : RTLogDefaultInstance(); \ 452 if (LogIt_pLogger) \ 453 { \ 454 LogIt_pLogger->pfnLogger fmtargs; \ 455 } \ 456 } while (0) 448 457 # endif 449 458 #else 450 459 # define LogIt(pvInst, fFlags, iGroup, fmtargs) do { } while (0) 460 # define LogItAlways(pvInst, fFlags, fmtargs) do { } while (0) 451 461 # if defined(LOG_USE_C99) 452 462 # define _LogRemoveParentheseis(...) __VA_ARGS__ … … 455 465 #endif 456 466 467 468 /** @def Log 469 * Level 1 logging that works regardless of the group settings (used for ring-0 assertion logging) 470 */ 471 #define LogAlways(a) LogItAlways(LOG_INSTANCE, RTLOGGRPFLAGS_LEVEL_1, a) 457 472 458 473 /** @def Log trunk/src/VBox/VMM/VMMR0/VMMR0.cpp
r8841 r8953 1087 1087 1088 1088 1089 # undef LOG_GROUP1090 # define LOG_GROUP LOG_GROUP_EM1091 1092 1089 /** 1093 1090 * Override this so we can push … … 1107 1104 pszExpr, pszFile, uLine, pszFunction); 1108 1105 #endif 1109 Log Rel(("\n!!R0-Assertion Failed!!\n"1110 "Expression: %s\n"1111 "Location : %s(%d) %s\n",1112 pszExpr, pszFile, uLine, pszFunction));1106 LogAlways(("\n!!R0-Assertion Failed!!\n" 1107 "Expression: %s\n" 1108 "Location : %s(%d) %s\n", 1109 pszExpr, pszFile, uLine, pszFunction)); 1113 1110 } 1114 1111 … … 1122 1119 for (size_t i = 0; i < cbChars; i++) 1123 1120 { 1124 Log Rel(("%c", pachChars[i])); /** @todo this isn't any release logging in ring-0 from what I can tell... */1121 LogAlways(("%c", pachChars[i])); /** @todo this isn't any release logging in ring-0 from what I can tell... */ 1125 1122 #ifndef DEBUG_sandervl 1126 1123 SUPR0Printf("%c", pachChars[i]);

