Changeset 13314 in vbox for trunk/src/VBox/Runtime/r0drv/linux/assert-r0drv-linux.c
- Timestamp:
- Oct 15, 2008 10:46:08 PM (16 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/assert-r0drv-linux.c
r13310 r13314 1 1 /* $Id$ */ 2 2 /** @file 3 * IPRT - Assertion Workers, Ring-0 Drivers, Darwin.3 * IPRT - Assertion Workers, Ring-0 Drivers, Linux. 4 4 */ 5 5 … … 33 33 * Header Files * 34 34 *******************************************************************************/ 35 #include "the- darwin-kernel.h"35 #include "the-linux-kernel.h" 36 36 37 37 #include <iprt/assert.h> … … 49 49 /** The last assert message, 2nd part. */ 50 50 RTDATADECL(char) g_szRTAssertMsg2[2048]; 51 /** The last assert message, file name. */ 52 RTDATADECL(const char *) volatile g_pszRTAssertExpr; 51 53 /** The last assert message, file name. */ 52 54 RTDATADECL(const char *) volatile g_pszRTAssertFile; … … 66 68 #endif 67 69 68 print f("\r\n!!Assertion Failed!!\r\n"70 printk("\r\n!!Assertion Failed!!\r\n" 69 71 "Expression: %s\r\n" 70 72 "Location : %s(%d) %s\r\n", … … 76 78 "Location : %s(%d) %s\n", 77 79 pszExpr, pszFile, uLine, pszFunction); 78 ASMAtomicUoWritePtr(&g_pszRTAssertFile, pszFile); 80 ASMAtomicUoWritePtr((void * volatile *)&g_pszRTAssertExpr, (void *)pszExpr); 81 ASMAtomicUoWritePtr((void * volatile *)&g_pszRTAssertFile, (void *)pszFile); 82 ASMAtomicUoWritePtr((void * volatile *)&g_pszRTAssertFunction, (void *)pszFunction); 79 83 ASMAtomicUoWriteU32(&g_u32RTAssertLine, uLine); 80 ASMAtomicUoWritePtr(&g_pszRTAssertFunction, pszFunction);81 84 } 82 85 … … 97 100 szMsg[sizeof(szMsg) - 1] = '\0'; 98 101 va_end(va); 99 print f("%s", szMsg);102 printk("%s", szMsg); 100 103 101 104 va_start(va, pszFormat);
Note:
See TracChangeset
for help on using the changeset viewer.