VirtualBox

Changeset 4745

Show
Ignore:
Timestamp:
09/12/07 22:14:44 (1 year ago)
Author:
vboxsync
Message:

Linux Additions smoke test fix

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/VBox/Additions/linux/module/vboxmod.c

    r4710 r4745  
    3434#endif 
    3535 
    36 #ifdef DEBUG 
    3736/* Runtime assert implementation for Linux ring 0 */ 
    3837RTDECL(void) AssertMsg1(const char *pszExpr, unsigned uLine, 
     
    7069} 
    7170EXPORT_SYMBOL(RTAssertDoBreakpoint); 
    72 #endif /* DEBUG defined */ 
     71#if !defined(DEBUG) && defined(IN_MODULE) 
     72/** Write a string to the backdoor logger. */ 
     73RTDECL(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
     89EXPORT_SYMBOL(RTLogWriteUser); 
     90#endif /* DEBUG not defined and IN_MODULE defined */ 
    7391 
    7492/** device extension structure (we only support one device instance) */ 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy