Changeset 25528 in vbox for trunk/src/VBox/Runtime/r0drv/nt
- Timestamp:
- Dec 20, 2009 11:24:59 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56201
- Location:
- trunk/src/VBox/Runtime/r0drv/nt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/nt/assert-r0drv-nt.cpp
r11917 r25528 39 39 #include <iprt/stdarg.h> 40 40 41 42 /******************************************************************************* 43 * Global Variables * 44 *******************************************************************************/ 45 /** The last assert message, 1st part. */ 46 RTDATADECL(char) g_szRTAssertMsg1[1024]; 47 /** The last assert message, 2nd part. */ 48 RTDATADECL(char) g_szRTAssertMsg2[2048]; 41 #include "internal/assert.h" 49 42 50 43 51 RTDECL(void) AssertMsg1(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction)44 void rtR0AssertNativeMsg1(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction) 52 45 { 53 #ifdef IN_GUEST_R054 RTLogBackdoorPrintf("\n!!Assertion Failed!!\n"55 "Expression: %s\n"56 "Location : %s(%d) %s\n",57 pszExpr, pszFile, uLine, pszFunction);58 #endif59 60 46 DbgPrint("\n!!Assertion Failed!!\n" 61 47 "Expression: %s\n" 62 48 "Location : %s(%d) %s\n", 63 49 pszExpr, pszFile, uLine, pszFunction); 64 65 RTStrPrintf(g_szRTAssertMsg1, sizeof(g_szRTAssertMsg1),66 "\n!!Assertion Failed!!\n"67 "Expression: %s\n"68 "Location : %s(%d) %s\n",69 pszExpr, pszFile, uLine, pszFunction);70 50 } 71 51 72 52 73 RTDECL(void) AssertMsg2(const char *pszFormat, ...)53 void rtR0AssertNativeMsg2V(const char *pszFormat, va_list va) 74 54 { 75 va_list va; 76 char szMsg[256]; 77 78 # ifdef IN_GUEST_R0 79 va_start(va, pszFormat); 80 RTLogBackdoorPrintfV(pszFormat, va); 81 va_end(va); 82 # endif 55 char szMsg[256]; 83 56 84 57 va_start(va, pszFormat); … … 87 60 va_end(va); 88 61 DbgPrint("%s", szMsg); 89 90 va_start(va, pszFormat);91 RTStrPrintfV(g_szRTAssertMsg2, sizeof(g_szRTAssertMsg2), pszFormat, va);92 va_end(va);93 62 } 94 63 -
trunk/src/VBox/Runtime/r0drv/nt/timer-r0drv-nt.cpp
r18988 r25528 115 115 #ifdef RT_STRICT 116 116 if (KeGetCurrentIrql() < DISPATCH_LEVEL) 117 AssertMsg2("rtTimerNtSimpleCallback: Irql=%d expected >=%d\n", KeGetCurrentIrql(), DISPATCH_LEVEL);117 RTAssertMsg2Weak("rtTimerNtSimpleCallback: Irql=%d expected >=%d\n", KeGetCurrentIrql(), DISPATCH_LEVEL); 118 118 #endif 119 119 … … 145 145 #ifdef RT_STRICT 146 146 if (KeGetCurrentIrql() < DISPATCH_LEVEL) 147 AssertMsg2("rtTimerNtOmniSlaveCallback: Irql=%d expected >=%d\n", KeGetCurrentIrql(), DISPATCH_LEVEL);147 RTAssertMsg2Weak("rtTimerNtOmniSlaveCallback: Irql=%d expected >=%d\n", KeGetCurrentIrql(), DISPATCH_LEVEL); 148 148 int iCpuSelf = RTMpCpuIdToSetIndex(RTMpCpuId()); 149 149 if (pSubTimer - &pTimer->aSubTimers[0] != iCpuSelf) 150 AssertMsg2("rtTimerNtOmniSlaveCallback: iCpuSelf=%d pSubTimer=%p / %d\n", iCpuSelf, pSubTimer, pSubTimer - &pTimer->aSubTimers[0]);150 RTAssertMsg2Weak("rtTimerNtOmniSlaveCallback: iCpuSelf=%d pSubTimer=%p / %d\n", iCpuSelf, pSubTimer, pSubTimer - &pTimer->aSubTimers[0]); 151 151 #endif 152 152 … … 182 182 #ifdef RT_STRICT 183 183 if (KeGetCurrentIrql() < DISPATCH_LEVEL) 184 AssertMsg2("rtTimerNtOmniMasterCallback: Irql=%d expected >=%d\n", KeGetCurrentIrql(), DISPATCH_LEVEL);184 RTAssertMsg2Weak("rtTimerNtOmniMasterCallback: Irql=%d expected >=%d\n", KeGetCurrentIrql(), DISPATCH_LEVEL); 185 185 if (pSubTimer - &pTimer->aSubTimers[0] != iCpuSelf) 186 AssertMsg2("rtTimerNtOmniMasterCallback: iCpuSelf=%d pSubTimer=%p / %d\n", iCpuSelf, pSubTimer, pSubTimer - &pTimer->aSubTimers[0]);186 RTAssertMsg2Weak("rtTimerNtOmniMasterCallback: iCpuSelf=%d pSubTimer=%p / %d\n", iCpuSelf, pSubTimer, pSubTimer - &pTimer->aSubTimers[0]); 187 187 #endif 188 188
Note:
See TracChangeset
for help on using the changeset viewer.