Changeset 46431 in vbox for trunk/src/libs/xpcom18a4
- Timestamp:
- Jun 7, 2013 10:03:06 AM (12 years ago)
- 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 49 49 50 50 #ifdef VBOX 51 # if defined(__OS2__) && defined(PAGE_SIZE)52 # undef PAGE_SIZE53 # endif54 # include <iprt/initterm.h> // for RTR3InitDll51 # if defined(__OS2__) && defined(PAGE_SIZE) 52 # undef PAGE_SIZE 53 # endif 54 # include <iprt/initterm.h> // for RTR3InitDll 55 55 #else // !VBOX 56 56 PRBool ipcLogEnabled = PR_FALSE; -
trunk/src/libs/xpcom18a4/ipc/ipcd/shared/src/ipcLog.h
r1 r46431 53 53 54 54 /* Redefine logging group to IPC */ 55 # ifdef LOG_GROUP56 # undef LOG_GROUP57 # endif58 # define LOG_GROUP LOG_GROUP_IPC55 # ifdef LOG_GROUP 56 # undef LOG_GROUP 57 # endif 58 # define LOG_GROUP LOG_GROUP_IPC 59 59 60 60 /* Ensure log macros are enabled */ 61 # ifndef LOG_ENABLED62 # define LOG_ENABLED63 # endif61 # ifndef LOG_ENABLED 62 # define LOG_ENABLED 63 # endif 64 64 65 65 #include <VBox/log.h> … … 69 69 extern NS_HIDDEN_(void) IPC_LogBinary(const PRUint8 *data, PRUint32 len); 70 70 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; \ 74 75 PR_END_MACRO 75 76 76 77 /* IPC_Log() internally uses LogFlow() so use LogIsFlowEnabled() below */ 77 # define IPC_LOG_ENABLED() (LogIsFlowEnabled())78 # define IPC_LOG_ENABLED() (LogIsFlowEnabled()) 78 79 79 # define LOG(args) IPC_LOG(args)80 # define LOG(args) IPC_LOG(args) 80 81 81 #else // VBOX82 #else /* !VBOX */ 82 83 83 84 extern PRBool ipcLogEnabled; … … 96 97 #define LOG(args) IPC_LOG(args) 97 98 98 #endif / / VBOX99 #endif /* !VBOX */ 99 100 100 101 #else // IPC_LOGGING
Note:
See TracChangeset
for help on using the changeset viewer.