VirtualBox

Changeset 9140 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 27, 2008 7:46:15 AM (17 years ago)
Author:
vboxsync
Message:

VBOXGUEST_RELEASE_LOG -> VBOX_RELEASE_LOG. We're not going to mix the two environments very frequently so there is no reason for making it different from what we're used to from the host. The debug logging is the same in both environments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3Lib.cpp

    r9126 r9140  
    161161     * Try open the BSD device.
    162162     */
    163 #if defined(VBOX_VBGLR3_XFREE86)
     163# if defined(VBOX_VBGLR3_XFREE86)
    164164    int File = 0;
    165 #else
     165# else
    166166    RTFILE File = 0;
    167 #endif
     167# endif
    168168    int rc;
    169169    char szDevice[sizeof(VBOXGUEST_DEVICE_NAME) + 16];
     
    171171    {
    172172        RTStrPrintf(szDevice, sizeof(szDevice), VBOXGUEST_DEVICE_NAME "%d", iUnit);
    173 #if defined(VBOX_VBGLR3_XFREE86)
     173# if defined(VBOX_VBGLR3_XFREE86)
    174174        File = xf86open(szDevice, XF86_O_RDWR);
    175175        if (File >= 0)
    176176            break;
    177 #else
     177# else
    178178        rc = RTFileOpen(&File, szDevice, RTFILE_O_READWRITE | RTFILE_O_OPEN | RTFILE_O_DENY_NONE);
    179179        if (RT_SUCCESS(rc))
    180180            break;
    181 #endif
     181# endif
    182182    }
    183183
    184 #if defined(VBOX_VBGLR3_XFREE86)
     184# if defined(VBOX_VBGLR3_XFREE86)
    185185    if (File == -1)
    186186        return VERR_OPEN_FAILED;
    187 #else
     187# else
    188188    if (RT_FAILURE(rc))
    189189        return rc;
    190 #endif
     190# endif
    191191
    192192    g_File = File;
     193
    193194#else
    194195    /* the default implemenation. (linux, solaris) */
     
    201202#endif
    202203
    203     /* Create release logger */
    204     PRTLOGGER loggerRelease;
     204    /*
     205     * Create release logger
     206     */
     207    PRTLOGGER pReleaseLogger;
    205208    static const char * const s_apszGroups[] = VBOX_LOGGROUP_NAMES;
    206     int rrc = RTLogCreate(&loggerRelease, 0, "all", "VBOXGUEST_RELEASE_LOG",
    207                          RT_ELEMENTS(s_apszGroups), &s_apszGroups[0],
    208                          RTLOGDEST_USER, NULL);
     209    int rc2 = RTLogCreate(&pReleaseLogger, 0, "all", "VBOX_RELEASE_LOG",
     210                          RT_ELEMENTS(s_apszGroups), &s_apszGroups[0],
     211                          RTLOGDEST_USER, NULL);
    209212    /* This may legitimately fail if we are using the mini-runtime. */
    210     if (RT_SUCCESS(rrc))
    211         RTLogRelSetDefaultInstance(loggerRelease);
     213    if (RT_SUCCESS(rc2))
     214        RTLogRelSetDefaultInstance(pReleaseLogger);
    212215
    213216    return VINF_SUCCESS;
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