VirtualBox

Changeset 10714 in vbox


Ignore:
Timestamp:
Jul 16, 2008 9:20:47 PM (16 years ago)
Author:
vboxsync
Message:

darwin has AssertMsg1/2 in IPRT as everyone should.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/darwin/SUPDrv-darwin.cpp

    r10680 r10714  
    748748
    749749
    750 /** Runtime assert implementation for Darwin Ring-0. */
    751 RTDECL(void) AssertMsg1(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction)
    752 {
    753     printf("!!Assertion Failed!!\n"
    754              "Expression: %s\n"
    755              "Location  : %s(%d) %s\n",
    756              pszExpr, pszFile, uLine, pszFunction);
    757 }
    758 
    759 
    760 /** Runtime assert implementation for the Darwin Ring-0 driver.
    761  * @todo this one needs fixing! */
    762 RTDECL(void) AssertMsg2(const char *pszFormat, ...)
    763 {   /* forwarder. */
    764     va_list     ap;
    765     char        msg[256];
    766 
    767     va_start(ap, pszFormat);
    768     vsnprintf(msg, sizeof(msg) - 1, pszFormat, ap);
    769     msg[sizeof(msg) - 1] = '\0';
    770     printf("%s", msg);
    771     va_end(ap);
    772 }
    773 
    774 
    775750/*
    776751 *
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