VirtualBox

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


Ignore:
Timestamp:
Aug 31, 2021 3:51:14 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
146676
Message:

Audio/Validation Kit: More code for resolving the connection problems. ​bugref:10008

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

Legend:

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

    r91030 r91034  
    796796static int atsClientReqProcess(PATSSERVER pThis, PATSCLIENTINST pInst, bool *pfDisconnect)
    797797{
     798    LogRelFlowFuncEnter();
     799
    798800    /*
    799801     * Read client command packet and process it.
     
    834836    RTMemFree(pPktHdr);
    835837
     838    LogRelFlowFuncLeaveRC(rc);
    836839    return rc;
    837840}
     
    883886            uint32_t uId;
    884887            rc = RTPoll(pThis->hPollSet, RT_INDEFINITE_WAIT, &fEvts, &uId);
     888            LogRelFlowFunc(("RTPoll(...) returned fEvts=#%x, uId=%RU32 -> %Rrc\n", fEvts, uId, rc));
    885889            if (RT_SUCCESS(rc))
    886890            {
  • trunk/src/VBox/Devices/Audio/AudioTestServiceTcp.cpp

    r91024 r91034  
    516516    Log3Func(("%RU32 -> %zu\n", pPktHdr->cb, cbToSend));
    517517
    518     LogRelFlowFunc(("%RTsock\n", pClient->hTcpClient));
     518    LogRelFlowFunc(("pClient=%RTsock\n", pClient->hTcpClient));
    519519    LogRelFlowFunc(("Header:\n"
    520520                    "%.*Rhxd\n", RT_MIN(sizeof(ATSPKTHDR), cbToSend), pPktHdr));
     
    534534    }
    535535
     536    LogRelFlowFunc(("pClient=%RTsock, cbSent=%zu -> %Rrc\n",
     537                    pClient->hTcpClient, cbToSend, rc));
     538
    536539    return rc;
    537540}
     
    545548    *ppPktHdr = NULL;
    546549
    547     LogRelFlowFunc(("%RTsock\n", pClient->hTcpClient));
     550    LogRelFlowFunc(("pClient=%RTsock (cbTcpStashed=%zu, cbTcpStashedAlloced=%zu)\n",
     551                    pClient->hTcpClient, pClient->cbTcpStashed, pClient->cbTcpStashedAlloced));
    548552
    549553    /*
     
    572576        cbDataAlloced = RT_ALIGN_Z(64,  ATSPKT_ALIGNMENT);
    573577        pbData = (uint8_t *)RTMemAlloc(cbDataAlloced);
    574         if (!pbData)
    575             return VERR_NO_MEMORY;
     578        AssertPtrReturn(pbData, VERR_NO_MEMORY);
    576579    }
    577580
     
    674677    }
    675678
     679    LogRelFlowFunc(("pClient=%RTsock, cbData=%zu -> %Rrc\n",
     680                    pClient->hTcpClient, cbData, rc));
    676681    return rc;
    677682}
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