VirtualBox

Changeset 6145 in vbox for trunk/include/VBox/com


Ignore:
Timestamp:
Dec 19, 2007 6:21:26 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
26881
Message:

Log the errors as well as displaying them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/com/assert.h

    r6076 r6145  
    142142 */
    143143#define PRINT_RC_MESSAGE(rc) \
    144     RTPrintf ("[!] Primary RC  = %Rwa\n", rc)
     144    do { \
     145        RTPrintf ("[!] Primary RC  = %Rwa\n", rc); \
     146        Log (("[!] Primary RC  = %Rwa\n", rc)); \
     147    } while (0)
    145148
    146149/**
     
    167170        rc = method; \
    168171        if (FAILED (rc)) { \
    169             RTPrintf("[!] FAILED calling " #method " at line %d!\n", __LINE__); \
     172            RTPrintf ("[!] FAILED calling " #method " at line %d!\n", __LINE__); \
     173            Log (("[!] FAILED calling " #method " at line %d!\n", __LINE__)); \
    170174            PRINT_RC_MESSAGE(rc); \
    171175        } \
     
    261265    do { \
    262266        if (!(expr)) \
    263             RTPrintf("[!] ASSERTION FAILED at line %d: %s\n", __LINE__, #expr); \
     267        { \
     268            RTPrintf ("[!] ASSERTION FAILED at line %d: %s\n", __LINE__, #expr); \
     269            Log (("[!] ASSERTION FAILED at line %d: %s\n", __LINE__, #expr)); \
     270        } \
    264271    } while (0)
    265272
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