Changeset 4745 in vbox for trunk/src/VBox
- Timestamp:
- Sep 12, 2007 8:14:44 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/module/vboxmod.c
r4710 r4745 34 34 #endif 35 35 36 #ifdef DEBUG37 36 /* Runtime assert implementation for Linux ring 0 */ 38 37 RTDECL(void) AssertMsg1(const char *pszExpr, unsigned uLine, … … 70 69 } 71 70 EXPORT_SYMBOL(RTAssertDoBreakpoint); 72 #endif /* DEBUG defined */ 71 #if !defined(DEBUG) && defined(IN_MODULE) 72 /** Write a string to the backdoor logger. */ 73 RTDECL(void) RTLogWriteUser(const char *pch, size_t cb) 74 { 75 const uint8_t *pu8; 76 for (pu8 = (const uint8_t *)pch; cb-- > 0; pu8++) 77 ASMOutU8(RTLOG_DEBUG_PORT, *pu8); 78 /** @todo a rep outs could be more efficient, I don't know... 79 * @code 80 * __asm { 81 * mov ecx, [cb] 82 * mov esi, [pch] 83 * mov dx, RTLOG_DEFAULT_PORT 84 * rep outsb 85 * } 86 * @endcode 87 */ 88 } 89 EXPORT_SYMBOL(RTLogWriteUser); 90 #endif /* DEBUG not defined and IN_MODULE defined */ 73 91 74 92 /** device extension structure (we only support one device instance) */
Note:
See TracChangeset
for help on using the changeset viewer.