VirtualBox

Changeset 14217 in vbox for trunk


Ignore:
Timestamp:
Nov 14, 2008 2:51:23 PM (16 years ago)
Author:
vboxsync
Message:

Additions/Guest Library: comments and logging

Location:
trunk/src/VBox/Additions/common/VBoxGuestLib
Files:
3 edited

Legend:

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

    r13837 r14217  
    138138    }
    139139
    140     /* Anyone who needs this can re-enable it locally */
    141     /* dprintf (("VbglHGCMCall: pCallInfo->cParms = %d, pHGCMCall->u32Function = %d\n", pCallInfo->cParms, pCallInfo->u32Function)); */
     140    Log (("VbglHGCMCall: pCallInfo->cParms = %d, pHGCMCall->u32Function = %d\n", pCallInfo->cParms, pCallInfo->u32Function));
    142141
    143142    pHGCMCall = NULL;
     
    148147    rc = VbglGRAlloc ((VMMDevRequestHeader **)&pHGCMCall, sizeof (VMMDevHGCMCall) + cbParms, VMMDevReq_HGCMCall);
    149148
    150     /* Anyone who needs this can re-enable it locally */
    151     /* dprintf (("VbglHGCMCall Allocated gr %p, rc = %Rrc, cbParms = %d\n", pHGCMCall, rc, cbParms)); */
     149    Log (("VbglHGCMCall Allocated gr %p, rc = %Rrc, cbParms = %d\n", pHGCMCall, rc, cbParms));
    152150
    153151    if (RT_SUCCESS(rc))
     
    209207        if (RT_SUCCESS(rc))
    210208        {
    211             /* Anyone who needs this can re-enable it locally */
    212             /* dprintf (("calling VbglGRPerform\n")); */
     209            Log (("calling VbglGRPerform\n"));
    213210
    214211            /* Issue request */
    215212            rc = VbglGRPerform (&pHGCMCall->header.header);
    216213
    217             /* Anyone who needs this can re-enable it locally */
    218             /* dprintf (("VbglGRPerform rc = %Rrc (header rc=%d)\n", rc, pHGCMCall->header.result)); */
     214            Log (("VbglGRPerform rc = %Rrc (header rc=%d)\n", rc, pHGCMCall->header.result));
    219215
    220216            /** If the call failed, but as a result of the request itself, then pretend success
     
    233229                {
    234230                    /* Wait for request completion interrupt notification from host */
     231                    Log (("Processing HGCM call asynchronously\n"));
    235232                    pAsyncCallback (&pHGCMCall->header, pvAsyncData, u32AsyncData);
    236233                }
     
    248245                    /* The callback returns without completing the request,
    249246                     * that means the wait was interrrupted. That can happen
    250                      * if system reboots or the VBoxService ended abnormally.
     247                     * if the request times out, the system reboots or the
     248                     * VBoxService ended abnormally.
    251249                     *
    252250                     * Cancel the request, the host will not write to the
    253251                     * memory related to the cancelled request.
    254252                     */
     253                    Log (("Cancelling HGCM call\n"));
    255254                    pHGCMCall->header.fu32Flags |= VBOX_HGCM_REQ_CANCELLED;
    256255
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBGLInternal.h

    r11820 r14217  
    3232#include <VBox/VBoxGuestLib.h>
    3333
     34#include <VBox/log.h>
     35
    3436#if (defined(DEBUG) && !defined(NO_LOGGING)) || defined(LOG_ENABLED)
    35 #include <VBox/log.h>
    3637# define dprintf(a) RTLogBackdoorPrintf a
    3738#else
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3Lib.cpp

    r10639 r14217  
    311311    {
    312312/** @todo The passing of error codes needs to be tested and fixed (as does *all* the other hosts except for
    313  * OS, Michael and Ramshankar!). The idea is that the VBox status codes in ring-0 should be
    314  * transfered without loss down to ring-3. However, it's not vitally important right now (obviously, since
    315  * the other guys has been ignoring it for 1+ years now). */
     313 * OS/2).  The idea is that the VBox status codes in ring-0 should be transfered without loss down to
     314 * ring-3. However, it's not vitally important right now (obviously, since the other guys has been
     315 * ignoring it for 1+ years now).  On Linux and Solaris the transfer is done, but it is currently not
     316 * lossless, so still needs fixing. */
    316317        DWORD LastErr = GetLastError();
    317318        return RTErrConvertFromWin32(LastErr);
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