VirtualBox

Ignore:
Timestamp:
Feb 21, 2012 2:02:26 PM (13 years ago)
Author:
vboxsync
Message:

VBoxGuest: Implemented (optional) ability to print debug guest output to the release log (Windows guest only atm).

File:
1 edited

Legend:

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

    r40197 r40198  
    713713    pDevExt->fVRDPEnabled = false;
    714714#endif
     715    pDevExt->fLoggingEnabled = false;
    715716    pDevExt->f32PendingEvents = 0;
    716717    pDevExt->u32MousePosChangedSeq = 0;
     
    23412342 * @returns VBox status code.
    23422343 *
     2344 * @param   pDevExt             The device extension.
    23432345 * @param   pch                 The log message (need not be NULL terminated).
    23442346 * @param   cbData              Size of the buffer.
    23452347 * @param   pcbDataReturned     Where to store the amount of returned data. Can be NULL.
    23462348 */
    2347 static int VBoxGuestCommonIOCtl_Log(const char *pch, size_t cbData, size_t *pcbDataReturned)
     2349static int VBoxGuestCommonIOCtl_Log(PVBOXGUESTDEVEXT pDevExt, const char *pch, size_t cbData, size_t *pcbDataReturned)
    23482350{
    23492351    NOREF(pch);
    23502352    NOREF(cbData);
    2351     Log(("%.*s", cbData, pch));
     2353    if (pDevExt->fLoggingEnabled)
     2354        RTLogBackdoorPrintf("%.*s", cbData, pch);
     2355    else
     2356        Log(("%.*s", cbData, pch));
    23522357    if (pcbDataReturned)
    23532358        *pcbDataReturned = 0;
     
    24792484    {
    24802485        CHECKRET_MIN_SIZE("LOG", 1);
    2481         rc = VBoxGuestCommonIOCtl_Log((char *)pvData, cbData, pcbDataReturned);
     2486        rc = VBoxGuestCommonIOCtl_Log(pDevExt, (char *)pvData, cbData, pcbDataReturned);
    24822487    }
    24832488    else
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