VirtualBox

Changeset 4710 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 11, 2007 12:51:37 PM (17 years ago)
Author:
vboxsync
Message:

Linux Additions kernel module logging, part 2

File:
1 edited

Legend:

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

    r4299 r4710  
    3434#endif
    3535
     36#ifdef DEBUG
    3637/* Runtime assert implementation for Linux ring 0 */
    3738RTDECL(void) AssertMsg1(const char *pszExpr, unsigned uLine,
     
    4748         pszExpr, pszFile, uLine, pszFunction));
    4849}
     50EXPORT_SYMBOL(AssertMsg1);
    4951
    5052/* Runtime assert implementation for Linux ring 0 */
     
    6163    va_end(ap);
    6264}
    63 
    64 #if 0  /* We now have real backdoor logging */
    65 /* Backdoor logging function, needed by the runtime */
    66 RTDECL(size_t) RTLogBackdoorPrintf (const char *pszFormat, ...)
    67 {
    68     va_list ap;
    69     char    msg[256];
    70     size_t n;
    71 
    72     va_start(ap, pszFormat);
    73     n = vsnprintf(msg, sizeof(msg) - 1, pszFormat, ap);
    74     msg[sizeof(msg) - 1] = '\0';
    75     printk ("%s", msg);
    76     va_end(ap);
    77     return n;
    78 }
    79 #endif
     65EXPORT_SYMBOL(AssertMsg2);
     66
     67RTDECL(bool)    RTAssertDoBreakpoint(void)
     68{
     69    return false;
     70}
     71EXPORT_SYMBOL(RTAssertDoBreakpoint);
     72#endif /* DEBUG defined */
    8073
    8174/** 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