Changeset 14500 in vbox for trunk/src/VBox/Runtime/r0drv/darwin/assert-r0drv-darwin.cpp
- Timestamp:
- Nov 24, 2008 2:22:08 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/darwin/assert-r0drv-darwin.cpp
r13314 r14500 59 59 60 60 61 RTDECL(void) AssertMsg1(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction)61 RTDECL(void) RTAssertMsg1(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction) 62 62 { 63 63 #ifdef IN_GUEST_R0 … … 85 85 86 86 87 RTDECL(void) AssertMsg2(const char *pszFormat, ...)87 RTDECL(void) RTAssertMsg2V(const char *pszFormat, va_list va) 88 88 { 89 va_list va ;89 va_list vaCopy; 90 90 char szMsg[256]; 91 91 92 92 #ifdef IN_GUEST_R0 93 va_ start(va, pszFormat);94 RTLogBackdoorPrintfV(pszFormat, va );95 va_end(va );93 va_copy(vaCopy, va); 94 RTLogBackdoorPrintfV(pszFormat, vaCopy); 95 va_end(vaCopy); 96 96 #endif 97 97 98 va_ start(va, pszFormat);99 RTStrPrintfV(szMsg, sizeof(szMsg) - 1, pszFormat, va );98 va_copy(vaCopy, va); 99 RTStrPrintfV(szMsg, sizeof(szMsg) - 1, pszFormat, vaCopy); 100 100 szMsg[sizeof(szMsg) - 1] = '\0'; 101 va_end(va );101 va_end(vaCopy); 102 102 printf("%s", szMsg); 103 103 104 va_ start(va, pszFormat);105 RTStrPrintfV(g_szRTAssertMsg2, sizeof(g_szRTAssertMsg2), pszFormat, va );106 va_end(va );104 va_copy(vaCopy, va); 105 RTStrPrintfV(g_szRTAssertMsg2, sizeof(g_szRTAssertMsg2), pszFormat, vaCopy); 106 va_end(vaCopy); 107 107 } 108 108
Note:
See TracChangeset
for help on using the changeset viewer.