VirtualBox

Changeset 4745 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 12, 2007 8:14:44 PM (17 years ago)
Author:
vboxsync
Message:

Linux Additions smoke test fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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) */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette