VirtualBox

Changeset 12128 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Sep 5, 2008 12:46:25 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
36081
Message:

Release logging in ring 0 seems to cause problems (memory corruption). Disabled it.

File:
1 edited

Legend:

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

    r11853 r12128  
    800800 * Write to specific logger if group enabled.
    801801 */
    802 #if defined(LOG_USE_C99)
    803 # define _LogRelRemoveParentheseis(...)                __VA_ARGS__
    804 #  define _LogRelIt(pvInst, fFlags, iGroup, ...)       RTLogLoggerEx((PRTLOGGER)pvInst, fFlags, iGroup, __VA_ARGS__)
    805 #  define LogRelIt(pvInst, fFlags, iGroup, fmtargs) \
     802#ifndef IN_RING0
     803# if defined(LOG_USE_C99)
     804#  define _LogRelRemoveParentheseis(...)                __VA_ARGS__
     805#   define _LogRelIt(pvInst, fFlags, iGroup, ...)       RTLogLoggerEx((PRTLOGGER)pvInst, fFlags, iGroup, __VA_ARGS__)
     806#   define LogRelIt(pvInst, fFlags, iGroup, fmtargs) \
    806807    do \
    807808    { \
     
    811812        LogIt(LOG_INSTANCE, fFlags, iGroup, fmtargs); \
    812813    } while (0)
    813 #else
    814 # define LogRelIt(pvInst, fFlags, iGroup, fmtargs) \
     814# else
     815#  define LogRelIt(pvInst, fFlags, iGroup, fmtargs) \
    815816   do \
    816817   { \
     
    824825       LogIt(LOG_INSTANCE, fFlags, iGroup, fmtargs); \
    825826  } while (0)
    826 #endif
    827 
     827# endif
     828#else
     829# define LogRelIt(pvInst, fFlags, iGroup, fmtargs)         do { } while (0)
     830# if defined(LOG_USE_C99)
     831#  define _LogRelRemoveParentheseis(...)                __VA_ARGS__
     832#  define _LogRelIt(pvInst, fFlags, iGroup, ...)           do { } while (0)
     833# endif
     834#endif
    828835
    829836/** @def LogRel
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