VirtualBox

Ignore:
Timestamp:
Feb 17, 2015 3:29:40 PM (10 years ago)
Author:
vboxsync
Message:

VBoxGuest: Reverted r92886 as it does not make any sense (RTLogFlush if buffered? Different env vars for DEBUG doesn't make anywhere, and the env.var. is ignored in ring-0 anyway).

File:
1 edited

Legend:

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

    r54237 r54239  
    972972     */
    973973    static const char * const s_apszGroups[] = VBOX_LOGGROUP_NAMES;
    974     RTUINT fFlags =   RTLOGFLAGS_PREFIX_TIME | RTLOGFLAGS_PREFIX_TID
    975                     | RTLOGFLAGS_PREFIX_THREAD | RTLOGFLAGS_PREFIX_TIME_PROG;
    976974    PRTLOGGER pRelLogger;
    977     rc = RTLogCreate(&pRelLogger, fFlags, "all",
    978 #ifdef DEBUG
    979                      "VBOXGUEST_LOG",
    980 #else
    981                      "VBOXGUEST_RELEASE_LOG",
    982 #endif
    983                      RT_ELEMENTS(s_apszGroups), s_apszGroups,
     975    rc = RTLogCreate(&pRelLogger, 0 /*fFlags*/, "all", "VBOXGUEST_RELEASE_LOG", RT_ELEMENTS(s_apszGroups), s_apszGroups,
    984976                     RTLOGDEST_STDOUT | RTLOGDEST_DEBUGGER, NULL);
    985977    if (RT_SUCCESS(rc))
    986     {
    987978        RTLogRelSetDefaultInstance(pRelLogger);
    988 
    989         /* Explicitly flush the log in case of VBOXGUEST_RELEASE_LOG=buffered. */
    990         RTLogFlush(pRelLogger);
    991     }
    992979    /** @todo Add native hook for getting logger config parameters and setting
    993      *        them. On Linux we use the module parameter stuff (see vboxguestLinuxModInit). */
     980     *        them.  On linux we should use the module parameter stuff... */
    994981#endif
    995982
     
    13571344{
    13581345    unsigned i; NOREF(i);
    1359     LogFlowFunc(("pSession=%p proc=%RTproc (%d) r0proc=%p\n",
    1360                  pSession, pSession->Process, (int)pSession->Process, (uintptr_t)pSession->R0Process)); /** @todo %RTr0proc */
     1346    LogFlow(("VBoxGuestCloseSession: pSession=%p proc=%RTproc (%d) r0proc=%p\n",
     1347             pSession, pSession->Process, (int)pSession->Process, (uintptr_t)pSession->R0Process)); /** @todo %RTr0proc */
    13611348
    13621349    RTSpinlockAcquire(pDevExt->SessionSpinlock);
     
    13751362            Info.u32ClientID = pSession->aHGCMClientIds[i];
    13761363            pSession->aHGCMClientIds[i] = 0;
    1377             LogFlowFunc(("Disconnecting client ID=%#RX32\n", Info.u32ClientID));
     1364            Log(("VBoxGuestCloseSession: disconnecting client id %#RX32\n", Info.u32ClientID));
    13781365            VbglR0HGCMInternalDisconnect(&Info, VBoxGuestHGCMAsyncWaitCallback, pDevExt, RT_INDEFINITE_WAIT);
    13791366        }
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