VirtualBox

Ignore:
Timestamp:
Dec 2, 2022 4:40:56 PM (2 years ago)
Author:
vboxsync
Message:

DnD/VbglR3: Added some (optional release) logging to the generic code.

File:
1 edited

Legend:

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

    r96407 r97733  
    9999            rc = Msg.cParms.GetUInt32(pcParms); AssertRC(rc);
    100100        }
     101
     102        LogRel(("DnD: Received message %s (%#x) from host\n", DnDHostMsgToStr(*puMsg), *puMsg));
    101103
    102104    } while (rc == VERR_INTERRUPTED);
     
    386388        return VINF_SUCCESS;
    387389
     390    LogRel2(("DnD: Receiving URI data started\n"));
     391
    388392    /*
    389393     * Allocate temporary chunk buffer.
     
    416420    do
    417421    {
    418         LogFlowFunc(("Wating for new message ...\n"));
     422        LogFlowFunc(("Waiting for new message ...\n"));
    419423
    420424        uint32_t uNextMsg;
     
    583587                default:
    584588                {
    585                     LogFlowFunc(("Message %RU32 not supported\n", uNextMsg));
     589                    LogRel(("DnD: Warning: Message %s (%#x) from host not supported\n", DnDGuestMsgToStr(uNextMsg), uNextMsg));
    586590                    rc = VERR_NOT_SUPPORTED;
    587591                    break;
     
    616620    if (RT_FAILURE(rc))
    617621    {
     622        LogRel(("DnD: Receiving URI data failed with %Rrc\n", rc));
     623
    618624        DnDTransferObjectDestroy(&objCur);
    619625        DnDDroppedFilesRollback(pDroppedFiles);
     
    621627    else
    622628    {
     629        LogRel2(("DnD: Receiving URI data finished\n"));
     630
    623631        /** @todo Compare the transfer list with the dirs/files we really transferred. */
    624632        /** @todo Implement checksum verification, if any. */
     
    909917            RTMemFree(pvData);
    910918
    911         LogRel(("DnD: Receiving meta data failed with %Rrc\n", rc));
    912 
    913919        if (rc != VERR_CANCELLED)
    914920        {
     921            LogRel(("DnD: Receiving data failed with %Rrc\n", rc));
     922
    915923            int rc2 = VbglR3DnDHGSendProgress(pCtx, DND_PROGRESS_ERROR, 100 /* Percent */, rc);
    916924            if (RT_FAILURE(rc2))
    917                 LogFlowFunc(("Unable to send progress error %Rrc to host: %Rrc\n", rc, rc2));
     925                LogRel(("DnD: Unable to send progress error %Rrc to host: %Rrc\n", rc, rc2));
    918926        }
    919927    }
     
    11781186            && (uSessionID != pCtx->uSessionID))
    11791187        {
    1180             LogFlowFunc(("VM session ID changed to %RU64\n", uSessionID));
    1181 
     1188            LogRel2(("DnD: VM session ID changed to %RU64\n", uSessionID));
    11821189            rc = VbglR3DnDDisconnect(pCtx);
    11831190            if (RT_SUCCESS(rc))
     
    11881195    if (rc == VERR_CANCELLED) /* Host service told us that we have to bail out. */
    11891196    {
     1197        LogRel2(("DnD: Host service requested termination\n"));
     1198
    11901199        pEvent->enmType = VBGLR3DNDEVENTTYPE_QUIT;
    1191 
    11921200        *ppEvent = pEvent;
    11931201
     
    13121320    {
    13131321        VbglR3DnDEventFree(pEvent);
    1314         LogFlowFunc(("Failed with %Rrc\n", rc));
     1322        LogRel(("DnD: Handling message %s (%#x) failed with %Rrc\n", DnDHostMsgToStr(uMsg), uMsg, rc));
    13151323    }
    13161324    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