VirtualBox

Changeset 8962

Show
Ignore:
Timestamp:
05/20/08 16:51:43 (8 months ago)
Author:
vboxsync
Message:

Fixed amd64 debug builds. Added some TODOs.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/iprt/log.h

    r8957 r8962  
    431431#ifdef LOG_ENABLED 
    432432# if defined(LOG_USE_C99) 
    433 #  define _LogRemoveParentheseis(...)               __VA_ARGS__ 
    434 #  define _LogIt(pvInst, fFlags, iGroup, ...)       RTLogLoggerEx((PRTLOGGER)pvInst, fFlags, iGroup, __VA_ARGS__) 
    435 #  define LogIt(pvInst, fFlags, iGroup, fmtargs)    _LogIt(pvInst, fFlags, iGroup, _LogRemoveParentheseis fmtargs) 
     433#  define _LogRemoveParentheseis(...)                   __VA_ARGS__ 
     434#  define _LogIt(pvInst, fFlags, iGroup, ...)           RTLogLoggerEx((PRTLOGGER)pvInst, fFlags, iGroup, __VA_ARGS__) 
     435#  define LogIt(pvInst, fFlags, iGroup, fmtargs)        _LogIt(pvInst, fFlags, iGroup, _LogRemoveParentheseis fmtargs) 
     436#  define _LogItAlways(pvInst, fFlags, iGroup, ...)     RTLogLoggerEx((PRTLOGGER)pvInst, fFlags, ~0U, __VA_ARGS__) 
     437#  define LogItAlways(pvInst, fFlags, iGroup, fmtargs)  _LogItAlways(pvInst, fFlags, iGroup, _LogRemoveParentheseis fmtargs) 
     438        /** @todo invent a flag or something for skipping the group check so we can pass iGroup. LogItAlways. */ 
    436439# else 
    437440#  define LogIt(pvInst, fFlags, iGroup, fmtargs) \ 
     
    446449        } \ 
    447450    } while (0) 
    448 # endif 
    449 #  define LogItAlways(pvInst, fFlags, fmtargs) \ 
     451#  define LogItAlways(pvInst, fFlags, iGroup, fmtargs) \ 
    450452    do \ 
    451453    { \ 
    452454        register PRTLOGGER LogIt_pLogger = (PRTLOGGER)(pvInst) ? (PRTLOGGER)(pvInst) : RTLogDefaultInstance(); \ 
    453455        if (LogIt_pLogger) \ 
    454         { \ 
    455456            LogIt_pLogger->pfnLogger fmtargs; \ 
    456         } \ 
    457457    } while (0) 
     458# endif 
    458459#else 
    459460# define LogIt(pvInst, fFlags, iGroup, fmtargs)     do { } while (0) 
     
    467468 
    468469/** @def Log 
    469  * Level 1 logging that works regardless of the group settings (used for ring-0 assertion logging) 
    470  */ 
    471 #define LogAlways(a)    LogItAlways(LOG_INSTANCE, RTLOGGRPFLAGS_LEVEL_1, a) 
     470 * Level 1 logging that works regardless of the group settings. 
     471 */ 
     472#define LogAlways(a)    LogItAlways(LOG_INSTANCE, RTLOGGRPFLAGS_LEVEL_1, LOG_GROUP, a) 
    472473 
    473474/** @def Log 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy