Changeset 25525 in vbox for trunk/src/VBox/Runtime/common/misc
- Timestamp:
- Dec 20, 2009 5:07:01 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56198
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/assert.cpp
r25518 r25525 78 78 79 79 80 #if defined(IN_GUEST_R0) && defined(RT_OS_WINDOWS) /** @todo remove this, see defect XYZ. */ 81 /* 82 * This is legacy that should be eliminated. OS specific code deals with 83 * R0 assertions now and it will do the backdoor printfs in addition to 84 * proper OS specific printfs and panics / BSODs / IPEs. 85 */ 86 #include <VBox/log.h> 87 88 89 /** 90 * The 1st part of an assert message. 91 * 92 * @param pszExpr Expression. Can be NULL. 93 * @param uLine Location line number. 94 * @param pszFile Location file name. 95 * @param pszFunction Location function name. 96 * @remark This API exists in HC Ring-3 and GC. 97 */ 98 RTDECL(void) AssertMsg1(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction) 99 { 100 RTLogBackdoorPrintf("\n!!Assertion Failed!!\n" 101 "Expression: %s\n" 102 "Location : %s(%d) %s\n", 103 pszExpr, pszFile, uLine, pszFunction); 104 } 105 RT_EXPORT_SYMBOL(AssertMsg1); 106 107 108 /** 109 * The 2nd (optional) part of an assert message. 110 * 111 * @param pszFormat Printf like format string. 112 * @param ... Arguments to that string. 113 * @remark This API exists in HC Ring-3 and GC. 114 */ 115 RTDECL(void) AssertMsg2(const char *pszFormat, ...) 116 { /* forwarder. */ 117 va_list args; 118 va_start(args, pszFormat); 119 RTLogBackdoorPrintfV(pszFormat, args); 120 va_end(args); 121 } 122 RT_EXPORT_SYMBOL(AssertMsg2); 123 124 #elif defined(IN_RING0) 80 #ifdef IN_RING0 125 81 126 82 /* OS specific. */
Note:
See TracChangeset
for help on using the changeset viewer.