VirtualBox

Changeset 5502 in vbox


Ignore:
Timestamp:
Oct 25, 2007 10:42:02 AM (17 years ago)
Author:
vboxsync
Message:

XPCOM: Enabled XPCOM log -> IPRT log redirection (using NSPR_LOG_FILE=IPRT) for all platforms.

File:
1 edited

Legend:

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

    r5057 r5502  
    4949 * 04/10/2000   IBM Corp.       Added DebugBreak() definitions for OS/2
    5050 */
    51 
    52 /* @todo cannot currently build with VBOX defined on linux platforms... */
    53 #if defined(VBOX) && !defined(XP_OS2)
    54 #undef VBOX
    55 #endif
    5651
    5752#if defined(VBOX) && defined(DEBUG)
     
    413408{
    414409#ifdef _PR_USE_STDIO_FOR_LOGGING
     410
    415411    FILE *newLogFile;
    416412
    417413#if defined(VBOX) && defined(DEBUG)
    418     if ( strcmp( file, "IPRT") == 0)
    419     {
     414    if (strcmp(file, "IPRT") == 0) {
    420415        /* initialize VBox Runtime */
    421416                RTR3Init(false, 0);
     
    425420#endif
    426421#ifdef XP_PC
    427     if ( strcmp( file, "WinDebug") == 0)
    428     {
     422    if (strcmp(file, "WinDebug") == 0) {
    429423        newLogFile = WIN32_DEBUG_FILE;
    430424    }
     
    453447    logFile = newLogFile;
    454448    return PR_TRUE;
    455 #else
     449
     450#else /* _PR_USE_STDIO_FOR_LOGGING */
     451
    456452    PRFileDesc *newLogFile;
     453
     454#if defined(VBOX) && defined(DEBUG)
     455    if (strcmp(file, "IPRT") == 0) {
     456        /* initialize VBox Runtime */
     457                RTR3Init(false, 0);
     458        logFile = IPRT_DEBUG_FILE;
     459        return PR_TRUE;
     460    }
     461#endif
    457462
    458463    newLogFile = PR_Open(file, PR_WRONLY|PR_CREATE_FILE|PR_TRUNCATE, 0666);
     
    467472    }
    468473    return (PRBool) (newLogFile != 0);
     474
    469475#endif /* _PR_USE_STDIO_FOR_LOGGING */
    470476}
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