Changeset 25528 in vbox for trunk/src/VBox/Runtime/r0drv/os2
- Timestamp:
- Dec 20, 2009 11:24:59 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56201
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/os2/assert-r0drv-os2.cpp
r8245 r25528 40 40 #include <VBox/log.h> 41 41 42 #include "internal/assert.h" 43 42 44 43 45 /******************************************************************************* … … 49 51 extern size_t g_cchRTAssertMsg; 50 52 53 51 54 /******************************************************************************* 52 55 * Internal Functions * … … 55 58 56 59 57 /** 58 * The 1st part of an assert message. 59 * 60 * @param pszExpr Expression. Can be NULL. 61 * @param uLine Location line number. 62 * @param pszFile Location file name. 63 * @param pszFunction Location function name. 64 * @remark This API exists in HC Ring-3 and GC. 65 */ 66 RTDECL(void) AssertMsg1(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction) 60 void rtR0AssertNativeMsg1(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction) 67 61 { 68 #ifdef IN_GUEST_R069 RTLogBackdoorPrintf("\n!!Assertion Failed!!\n"70 "Expression: %s\n"71 "Location : %s(%d) %s\n",72 pszExpr, pszFile, uLine, pszFunction);73 #endif74 75 62 #if defined(DEBUG_bird) 76 63 RTLogComPrintf("\n!!Assertion Failed!!\n" … … 88 75 89 76 90 /** 91 * The 2nd (optional) part of an assert message. 92 * 93 * @param pszFormat Printf like format string. 94 * @param ... Arguments to that string. 95 * @remark This API exists in HC Ring-3 and GC. 96 */ 97 RTDECL(void) AssertMsg2(const char *pszFormat, ...) 77 void rtR0AssertNativeMsg2V(const char *pszFormat, va_list va) 98 78 { 99 va_list va;100 101 #ifdef IN_GUEST_R0102 va_start(va, pszFormat);103 RTLogBackdoorPrintfV(pszFormat, va);104 va_end(va);105 #endif106 107 79 #if defined(DEBUG_bird) 108 va_start(va, pszFormat); 109 RTLogComPrintfV(pszFormat, va); 110 va_end(va); 80 va_list vaCopy; 81 va_copy(vaCopy, va); 82 RTLogComPrintfV(pszFormat, vaCopy); 83 va_end(vaCopy); 111 84 #endif 112 85
Note:
See TracChangeset
for help on using the changeset viewer.