VirtualBox

Changeset 91023 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
Aug 31, 2021 9:25:10 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
146664
Message:

Audio/Validation Kit: More (verbose) releasing logging. ​bugref:10008

Location:
trunk/src/VBox/Devices/Audio
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/AudioTestService.cpp

    r90962 r91023  
    988988    RT_NOREF(hThread);
    989989
     990    LogRelFlowFuncEnter();
     991
    990992    PATSSERVER pThis = (PATSSERVER)pvUser;
    991993    AssertPtrReturn(pThis, VERR_INVALID_POINTER);
     
    10241026            rc = RTPipeWrite(pThis->hPipeW, "", 1, &cbWritten);
    10251027            if (RT_FAILURE(rc))
    1026                 LogRel(("Failed to inform worker thread of a new client, rc=%Rrc\n", rc));
     1028                LogRelFunc(("Failed to inform worker thread of a new client, rc=%Rrc\n", rc));
    10271029        }
    10281030        else
    10291031        {
    1030             LogRel(("Creating new client structure failed with out of memory error\n"));
     1032            LogRelFunc(("Creating new client structure failed with out of memory error\n"));
    10311033            pThis->pTransport->pfnNotifyBye(pThis->pTransportInst, pTransportClient);
    10321034        }
    10331035    }
    10341036
     1037    LogRelFlowFuncLeaveRC(rc);
    10351038    return rc;
    10361039}
     
    11211124int AudioTestSvcStart(PATSSERVER pThis)
    11221125{
     1126    LogRelFlowFuncEnter();
     1127
    11231128    /* Spin off the thread serving connections. */
    11241129    int rc = RTThreadCreate(&pThis->hThreadServing, atsClientWorker, pThis, 0, RTTHREADTYPE_IO, RTTHREADFLAGS_WAITABLE,
     
    11441149    }
    11451150
     1151    LogRelFlowFuncLeaveRC(rc);
    11461152    return rc;
    11471153}
     
    11571163    if (!pThis->fStarted)
    11581164        return VINF_SUCCESS;
     1165
     1166    LogRelFlowFuncEnter();
    11591167
    11601168    ASMAtomicXchgBool(&pThis->fTerminate, true);
     
    11881196        pThis->fStarted = false;
    11891197
     1198    LogRelFlowFuncLeaveRC(rc);
    11901199    return rc;
    11911200}
     
    12441253int AudioTestSvcDestroy(PATSSERVER pThis)
    12451254{
     1255    LogRelFlowFuncEnter();
     1256
    12461257    int rc = audioTestSvcDestroyInternal(pThis);
    12471258    if (RT_SUCCESS(rc))
     
    12581269    }
    12591270
    1260     return rc;
    1261 }
     1271    LogRelFlowFuncLeaveRC(rc);
     1272    return rc;
     1273}
  • trunk/src/VBox/Devices/Audio/AudioTestServiceTcp.cpp

    r91013 r91023  
    131131    if (pClient->hTcpClient != NIL_RTSOCKET)
    132132    {
    133         LogRelFlowFunc(("Disconnecting client %RTsock\n", pClient->hTcpClient));
     133        LogRelFlowFunc(("%RTsock\n", pClient->hTcpClient));
    134134
    135135        int rc;
     
    347347            LogRelFlowFunc(("Calling RTTcpClientConnect(%s, %u,)...\n", pThis->szConnectAddr, pThis->uConnectPort));
    348348            rc = RTTcpClientConnect(pThis->szConnectAddr, pThis->uConnectPort, &pClient->hTcpClient);
    349             LogRelFlowFunc(("RTTcpClientConnect -> %Rrc\n", rc));
     349            LogRelFlowFunc(("RTTcpClientConnect(%RTsock) -> %Rrc\n", pClient->hTcpClient, rc));
    350350            if (RT_SUCCESS(rc) || atsTcpIsFatalClientConnectStatus(rc))
    351351                break;
     
    463463static DECLCALLBACK(void) atsTcpNotifyBye(PATSTRANSPORTINST pThis, PATSTRANSPORTCLIENT pClient)
    464464{
    465     LogFunc(("atsTcpDisconnectClient %RTsock\n", pClient->hTcpClient));
     465    LogRelFunc(("%RTsock\n", pClient->hTcpClient));
    466466    atsTcpDisconnectClient(pThis, pClient);
    467467}
     
    472472static DECLCALLBACK(void) atsTcpNotifyHowdy(PATSTRANSPORTINST pThis, PATSTRANSPORTCLIENT pClient)
    473473{
     474    LogRelFunc(("%RTsock\n", pClient->hTcpClient));
     475
    474476    /* nothing to do here */
    475     RT_NOREF(pThis, pClient);
     477    RT_NOREF(pThis);
    476478}
    477479
     
    511513    Log3Func(("%RU32 -> %zu\n", pPktHdr->cb, cbToSend));
    512514
     515    LogRelFlowFunc(("%RTsock\n", pClient->hTcpClient));
    513516    LogRelFlowFunc(("Header:\n"
    514517                    "%.*Rhxd\n", RT_MIN(sizeof(ATSPKTHDR), cbToSend), pPktHdr));
     
    538541    int rc = VINF_SUCCESS;
    539542    *ppPktHdr = NULL;
     543
     544    LogRelFlowFunc(("%RTsock\n", pClient->hTcpClient));
    540545
    541546    /*
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette