Changeset 91023 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Aug 31, 2021 9:25:10 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 146664
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioTestService.cpp
r90962 r91023 988 988 RT_NOREF(hThread); 989 989 990 LogRelFlowFuncEnter(); 991 990 992 PATSSERVER pThis = (PATSSERVER)pvUser; 991 993 AssertPtrReturn(pThis, VERR_INVALID_POINTER); … … 1024 1026 rc = RTPipeWrite(pThis->hPipeW, "", 1, &cbWritten); 1025 1027 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)); 1027 1029 } 1028 1030 else 1029 1031 { 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")); 1031 1033 pThis->pTransport->pfnNotifyBye(pThis->pTransportInst, pTransportClient); 1032 1034 } 1033 1035 } 1034 1036 1037 LogRelFlowFuncLeaveRC(rc); 1035 1038 return rc; 1036 1039 } … … 1121 1124 int AudioTestSvcStart(PATSSERVER pThis) 1122 1125 { 1126 LogRelFlowFuncEnter(); 1127 1123 1128 /* Spin off the thread serving connections. */ 1124 1129 int rc = RTThreadCreate(&pThis->hThreadServing, atsClientWorker, pThis, 0, RTTHREADTYPE_IO, RTTHREADFLAGS_WAITABLE, … … 1144 1149 } 1145 1150 1151 LogRelFlowFuncLeaveRC(rc); 1146 1152 return rc; 1147 1153 } … … 1157 1163 if (!pThis->fStarted) 1158 1164 return VINF_SUCCESS; 1165 1166 LogRelFlowFuncEnter(); 1159 1167 1160 1168 ASMAtomicXchgBool(&pThis->fTerminate, true); … … 1188 1196 pThis->fStarted = false; 1189 1197 1198 LogRelFlowFuncLeaveRC(rc); 1190 1199 return rc; 1191 1200 } … … 1244 1253 int AudioTestSvcDestroy(PATSSERVER pThis) 1245 1254 { 1255 LogRelFlowFuncEnter(); 1256 1246 1257 int rc = audioTestSvcDestroyInternal(pThis); 1247 1258 if (RT_SUCCESS(rc)) … … 1258 1269 } 1259 1270 1260 return rc; 1261 } 1271 LogRelFlowFuncLeaveRC(rc); 1272 return rc; 1273 } -
trunk/src/VBox/Devices/Audio/AudioTestServiceTcp.cpp
r91013 r91023 131 131 if (pClient->hTcpClient != NIL_RTSOCKET) 132 132 { 133 LogRelFlowFunc((" Disconnecting client%RTsock\n", pClient->hTcpClient));133 LogRelFlowFunc(("%RTsock\n", pClient->hTcpClient)); 134 134 135 135 int rc; … … 347 347 LogRelFlowFunc(("Calling RTTcpClientConnect(%s, %u,)...\n", pThis->szConnectAddr, pThis->uConnectPort)); 348 348 rc = RTTcpClientConnect(pThis->szConnectAddr, pThis->uConnectPort, &pClient->hTcpClient); 349 LogRelFlowFunc(("RTTcpClientConnect -> %Rrc\n", rc));349 LogRelFlowFunc(("RTTcpClientConnect(%RTsock) -> %Rrc\n", pClient->hTcpClient, rc)); 350 350 if (RT_SUCCESS(rc) || atsTcpIsFatalClientConnectStatus(rc)) 351 351 break; … … 463 463 static DECLCALLBACK(void) atsTcpNotifyBye(PATSTRANSPORTINST pThis, PATSTRANSPORTCLIENT pClient) 464 464 { 465 Log Func(("atsTcpDisconnectClient%RTsock\n", pClient->hTcpClient));465 LogRelFunc(("%RTsock\n", pClient->hTcpClient)); 466 466 atsTcpDisconnectClient(pThis, pClient); 467 467 } … … 472 472 static DECLCALLBACK(void) atsTcpNotifyHowdy(PATSTRANSPORTINST pThis, PATSTRANSPORTCLIENT pClient) 473 473 { 474 LogRelFunc(("%RTsock\n", pClient->hTcpClient)); 475 474 476 /* nothing to do here */ 475 RT_NOREF(pThis , pClient);477 RT_NOREF(pThis); 476 478 } 477 479 … … 511 513 Log3Func(("%RU32 -> %zu\n", pPktHdr->cb, cbToSend)); 512 514 515 LogRelFlowFunc(("%RTsock\n", pClient->hTcpClient)); 513 516 LogRelFlowFunc(("Header:\n" 514 517 "%.*Rhxd\n", RT_MIN(sizeof(ATSPKTHDR), cbToSend), pPktHdr)); … … 538 541 int rc = VINF_SUCCESS; 539 542 *ppPktHdr = NULL; 543 544 LogRelFlowFunc(("%RTsock\n", pClient->hTcpClient)); 540 545 541 546 /*
Note:
See TracChangeset
for help on using the changeset viewer.