VirtualBox

Changeset 5057 in vbox for trunk/src/libs/xpcom18a4/nsprpub


Ignore:
Timestamp:
Sep 26, 2007 4:27:12 PM (17 years ago)
Author:
vboxsync
Message:

XPCOM: Be constant when enabling IPRT logging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/nsprpub/pr/src/io/prlog.c

    r4638 r5057  
    5555#endif
    5656
    57 #if defined(VBOX)
     57#if defined(VBOX) && defined(DEBUG)
    5858#define IN_RING3
    5959#include <iprt/initterm.h> /* for RTR3Init */
     
    129129** and the "default" log group will be used for logging.
    130130*/
    131 #if defined(VBOX)
     131#if defined(VBOX) && defined(DEBUG)
    132132#if defined(_PR_USE_STDIO_FOR_LOGGING)
    133133#define IPRT_DEBUG_FILE (FILE*)-3
     
    162162#endif
    163163
    164 #if defined(VBOX)
     164#if defined(VBOX) && defined(DEBUG)
    165165#define _PUT_LOG(fd, buf, nb) \
    166166    PR_BEGIN_MACRO \
     
    326326        && logFile != stdout
    327327        && logFile != stderr
    328 #ifdef VBOX
     328#if defined(VBOX) && defined(DEBUG)
    329329        && logFile != IPRT_DEBUG_FILE
    330330#endif
     
    415415    FILE *newLogFile;
    416416
    417 #if defined(VBOX) && (!defined(RT_OS_OS2) || defined(DEBUG) || defined(IPC_LOGGING))
     417#if defined(VBOX) && defined(DEBUG)
    418418    if ( strcmp( file, "IPRT") == 0)
    419419    {
     
    442442        && logFile != stdout
    443443        && logFile != stderr
    444 #ifdef VBOX
     444#if defined(VBOX) && defined(DEBUG)
    445445        && logFile != IPRT_DEBUG_FILE
    446446#endif
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