VirtualBox

Changeset 46431 in vbox for trunk/src/libs/xpcom18a4


Ignore:
Timestamp:
Jun 7, 2013 10:03:06 AM (12 years ago)
Author:
vboxsync
Message:

baka

Location:
trunk/src/libs/xpcom18a4/ipc/ipcd/shared/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/ipc/ipcd/shared/src/ipcLog.cpp

    r46043 r46431  
    4949
    5050#ifdef VBOX
    51 #if defined(__OS2__) && defined(PAGE_SIZE)
    52 #undef PAGE_SIZE
    53 #endif
    54 #include <iprt/initterm.h> // for RTR3InitDll
     51# if defined(__OS2__) && defined(PAGE_SIZE)
     52#  undef PAGE_SIZE
     53# endif
     54# include <iprt/initterm.h> // for RTR3InitDll
    5555#else // !VBOX
    5656PRBool ipcLogEnabled = PR_FALSE;
  • trunk/src/libs/xpcom18a4/ipc/ipcd/shared/src/ipcLog.h

    r1 r46431  
    5353
    5454/* Redefine logging group to IPC */
    55 #ifdef LOG_GROUP
    56 #undef LOG_GROUP
    57 #endif
    58 #define LOG_GROUP LOG_GROUP_IPC
     55# ifdef LOG_GROUP
     56#  undef LOG_GROUP
     57# endif
     58# define LOG_GROUP LOG_GROUP_IPC
    5959
    6060/* Ensure log macros are enabled */
    61 #ifndef LOG_ENABLED
    62 #define LOG_ENABLED
    63 #endif
     61# ifndef LOG_ENABLED
     62#  define LOG_ENABLED
     63# endif
    6464
    6565#include <VBox/log.h>
     
    6969extern NS_HIDDEN_(void) IPC_LogBinary(const PRUint8 *data, PRUint32 len);
    7070
    71 #define IPC_LOG(_args)         \
    72     PR_BEGIN_MACRO             \
    73         IPC_Log _args;         \
     71# define IPC_LOG(_args) \
     72    PR_BEGIN_MACRO \
     73        if (IPC_LOG_ENABLED()) \
     74            IPC_Log _args; \
    7475    PR_END_MACRO
    7576
    7677/* IPC_Log() internally uses LogFlow() so use LogIsFlowEnabled() below */
    77 #define IPC_LOG_ENABLED() (LogIsFlowEnabled())
     78# define IPC_LOG_ENABLED() (LogIsFlowEnabled())
    7879
    79 #define LOG(args)     IPC_LOG(args)
     80# define LOG(args)     IPC_LOG(args)
    8081
    81 #else // VBOX
     82#else  /* !VBOX */
    8283
    8384extern PRBool ipcLogEnabled;
     
    9697#define LOG(args)     IPC_LOG(args)
    9798
    98 #endif // VBOX
     99#endif /* !VBOX */
    99100
    100101#else // IPC_LOGGING
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