VirtualBox

Ignore:
Timestamp:
Dec 20, 2009 11:24:59 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56201
Message:

IPRT,SUPDrv,++: AssertMsg[12] -> AssertMsg1Weak, AssertMsg1, AssertMsg2Weak, AssertMsg2, AssertMsg2WeakV and AssertMsg2V. Doing more of the assertion machinery in common/misc/assert.cpp to avoid code duplication (ring-0). Major SUPDrv version bump.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/freebsd/assert-r0drv-freebsd.c

    r18972 r25528  
    3939#include <iprt/stdarg.h>
    4040
     41#include "internal/assert.h"
    4142
    42 RTDECL(void) AssertMsg1(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction)
     43
     44void rtR0AssertNativeMsg1(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction)
    4345{
    44 #ifdef IN_GUEST_R0
    45     RTLogBackdoorPrintf("\n!!Assertion Failed!!\n"
    46                         "Expression: %s\n"
    47                         "Location  : %s(%d) %s\n",
    48                         pszExpr, pszFile, uLine, pszFunction);
    49 #endif
    50 
    5146    printf("\r\n!!Assertion Failed!!\r\n"
    5247           "Expression: %s\r\n"
     
    5651
    5752
    58 RTDECL(void) AssertMsg2(const char *pszFormat, ...)
     53void rtR0AssertNativeMsg2V(const char *pszFormat, va_list va)
    5954{
    60     va_list va;
    61     char    szMsg[256];
    62 
    63 #ifdef IN_GUEST_R0
    64     va_start(va, pszFormat);
    65     RTLogBackdoorPrintfV(pszFormat, va);
    66     va_end(va);
    67 #endif
     55    char szMsg[256];
    6856
    6957    va_start(va, pszFormat);
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