VirtualBox

Changeset 21953 in vbox for trunk/include


Ignore:
Timestamp:
Aug 4, 2009 11:23:34 AM (15 years ago)
Author:
vboxsync
Message:

iprt/log.h: Made _LogRelIt do what _LogIt does.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/log.h

    r21794 r21953  
    856856# if defined(LOG_USE_C99)
    857857#  define _LogRelRemoveParentheseis(...)                __VA_ARGS__
    858 #   define _LogRelIt(pvInst, fFlags, iGroup, ...)       RTLogLoggerEx((PRTLOGGER)pvInst, fFlags, iGroup, __VA_ARGS__)
    859 #   define LogRelIt(pvInst, fFlags, iGroup, fmtargs) \
     858#  define _LogRelIt(pvInst, fFlags, iGroup, ...) \
    860859    do \
    861860    { \
    862861        PRTLOGGER LogRelIt_pLogger = (PRTLOGGER)(pvInst) ? (PRTLOGGER)(pvInst) : RTLogRelDefaultInstance(); \
    863862        if (LogRelIt_pLogger) \
    864             _LogRelIt(LogRelIt_pLogger, fFlags, iGroup, _LogRelRemoveParentheseis fmtargs); \
    865         LogIt(LOG_INSTANCE, fFlags, iGroup, fmtargs); \
     863            RTLogLoggerEx(LogRelIt_pLogger, fFlags, iGroup, __VA_ARGS__); \
     864        _LogIt(LOG_INSTANCE, fFlags, iGroup, __VA_ARGS__); \
    866865    } while (0)
     866#  define LogRelIt(pvInst, fFlags, iGroup, fmtargs)     _LogRelIt(pvInst, fFlags, iGroup, _LogRelRemoveParentheseis fmtargs)
    867867# else
    868868#  define LogRelIt(pvInst, fFlags, iGroup, fmtargs) \
     
    930930# define LogRelFunc(a) \
    931931    _LogRelIt(LOG_REL_INSTANCE, RTLOGGRPFLAGS_LEVEL_1, LOG_GROUP, LOG_FN_FMT ": %M", __PRETTY_FUNCTION__, _LogRemoveParentheseis a )
     932# define LogFunc(a) \
     933           _LogIt(LOG_INSTANCE, RTLOGGRPFLAGS_LEVEL_1, LOG_GROUP, LOG_FN_FMT ": %M", __PRETTY_FUNCTION__, _LogRemoveParentheseis a )
    932934#else
    933935# define LogRelFunc(a) \
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