VirtualBox

Changeset 1226 in vbox


Ignore:
Timestamp:
Mar 5, 2007 4:00:13 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
19159
Message:

AssertMsg2 update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/VMMR0.cpp

    r1224 r1226  
    6161
    6262
    63 /* #define DEBUG_NO_RING0_ASSERTIONS */
     63#define DEBUG_NO_RING0_ASSERTIONS
    6464#ifdef DEBUG_NO_RING0_ASSERTIONS
    6565static PVM g_pVMAssert = 0;
     
    746746}
    747747
     748/**
     749 * Callback for RTLogFormatV which writes to the com port.
     750 * See PFNLOGOUTPUT() for details.
     751 */
     752static DECLCALLBACK(size_t) rtLogOutput(void *pv, const char *pachChars, size_t cbChars)
     753{
     754    for (size_t i=0;i<cbChars;i++)
     755        Log(("%c", pachChars[i]));
     756
     757    return cbChars;
     758}
     759
    748760DECLEXPORT(void) RTCALL AssertMsg2(const char *pszFormat, ...)
    749761{
     
    754766
    755767        va_start(args, pszFormat);
    756         RTLogRelPrintfV(pszFormat, args);
     768        RTLogFormatV(rtLogOutput, pLog, pszFormat, args);
    757769        va_end(args);
    758         RTLogFlush(pLog);
    759     }
    760 }
    761 
    762 #endif
     770        R0LogFlush();
     771    }
     772}
     773
     774#endif
Note: See TracChangeset for help on using the changeset viewer.

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