VirtualBox

Changeset 15166 in vbox


Ignore:
Timestamp:
Dec 9, 2008 1:38:57 PM (16 years ago)
Author:
vboxsync
Message:

Main and HostServices/GuestProps: additional logging

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/GuestProperties/service.cpp

    r14461 r15166  
    275275    {
    276276        AssertLogRelReturnVoid(VALID_PTR(pvService));
     277        LogFlowFunc (("pvService=%p, callHandle=%p, u32ClientID=%u, pvClient=%p, u32Function=%u, cParms=%u, paParms=%p\n", pvService, callHandle, u32ClientID, pvClient, u32Function, cParms, paParms));
    277278        SELF *pSelf = reinterpret_cast<SELF *>(pvService);
    278279        pSelf->call(callHandle, u32ClientID, pvClient, u32Function, cParms, paParms);
     280        LogFlowFunc (("returning\n"));
    279281    }
    280282
     
    289291    {
    290292        AssertLogRelReturn(VALID_PTR(pvService), VERR_INVALID_PARAMETER);
     293        LogFlowFunc (("pvService=%p, u32Function=%u, cParms=%u, paParms=%p\n", pvService, u32Function, cParms, paParms));
    291294        SELF *pSelf = reinterpret_cast<SELF *>(pvService);
    292         return pSelf->hostCall(u32Function, cParms, paParms);
     295        int rc = pSelf->hostCall(u32Function, cParms, paParms);
     296        LogFlowFunc (("rc=%Rrc\n", rc));
     297        return rc;
    293298    }
    294299
     
    982987
    983988    AssertPtrReturnVoid(pszProperty);
     989    LogFlowThisFunc (("pszProperty=%s, u64Timestamp=%llu\n", pszProperty, u64Timestamp));
    984990    /* Ensure that our timestamp is different to the last one. */
    985991    if (   !mGuestNotifications.empty()
     
    10851091    if (RT_FAILURE(rc)) /* clean up if we failed somewhere */
    10861092    {
     1093        LogThisFunc (("Failed, freeing allocated strings.\n"));
    10871094        RTStrFree(pszName);
    10881095        RTStrFree(pszValue);
    10891096        RTStrFree(pszFlags);
    10901097    }
     1098    LogFlowThisFunc (("returning\n"));
    10911099#endif /* VBOX_GUEST_PROP_TEST_NOTHREAD not defined */
    10921100}
     
    11011109 * @thread  request thread
    11021110 */
     1111/* static */
    11031112int Service::reqNotify(PFNHGCMSVCEXT pfnCallback, void *pvData,
    11041113                       char *pszName, char *pszValue, uint32_t u32TimeHigh,
    11051114                       uint32_t u32TimeLow, char *pszFlags)
    11061115{
     1116    LogFlowFunc (("pfnCallback=%p, pvData=%p, pszName=%s, pszValue=%s, u32TimeHigh=%u, u32TimeLow=%u, pszFlags=%s\n", pfnCallback, pvData, pszName, pszValue, u32TimeHigh, u32TimeLow, pszFlags));
    11071117    HOSTCALLBACKDATA HostCallbackData;
    11081118    HostCallbackData.u32Magic     = HOSTCALLBACKMAGIC;
     
    11131123    AssertRC(pfnCallback(pvData, 0, reinterpret_cast<void *>(&HostCallbackData),
    11141124                         sizeof(HostCallbackData)));
     1125    LogFlowFunc (("Freeing strings\n"));
    11151126    RTStrFree(pszName);
    11161127    RTStrFree(pszValue);
    11171128    RTStrFree(pszFlags);
     1129    LogFlowFunc (("returning success\n"));
    11181130    return VINF_SUCCESS;
    11191131}
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r15108 r15166  
    10401040    using namespace guestProp;
    10411041
     1042    LogFlowFunc (("pvExtension=%p, pvParms=%p, cbParms=%u\n", pvExtension, pvParms, cbParms));
    10421043    int rc = VINF_SUCCESS;
    10431044    /* No locking, as this is purely a notification which does not make any
     
    10471048    AssertReturn(HOSTCALLBACKMAGIC == pCBData->u32Magic, VERR_INVALID_PARAMETER);
    10481049    ComObjPtr <Console> pConsole = reinterpret_cast <Console *> (pvExtension);
     1050    LogFlowFunc (("pCBData->pcszName=%s, pCBData->pcszValue=%s, pCBData->pcszFlags=%s\n", pCBData->pcszName, pCBData->pcszValue, pCBData->pcszFlags));
    10491051    Bstr name(pCBData->pcszName);
    10501052    Bstr value(pCBData->pcszValue);
     
    10691071        }
    10701072    }
     1073    LogFlowFunc (("rc=%Rrc\n", rc));
    10711074    return rc;
    10721075}
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