VirtualBox

Changeset 90868 in vbox


Ignore:
Timestamp:
Aug 25, 2021 10:12:34 AM (3 years ago)
Author:
vboxsync
Message:

Audio/VKAT: More logging adjustments. bugref:10008

Location:
trunk/src/VBox
Files:
4 edited

Legend:

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

    r90867 r90868  
    2121*********************************************************************************************************************************/
    2222#define LOG_GROUP LOG_GROUP_AUDIO_TEST
     23#include <iprt/log.h>
    2324
    2425#include <iprt/alloca.h>
     
    3738#include <iprt/json.h>
    3839#include <iprt/list.h>
    39 #include <iprt/log.h>
    4040#include <iprt/mem.h>
    4141#include <iprt/message.h>
     
    997997            rc = RTPipeWrite(pThis->hPipeW, "", 1, &cbWritten);
    998998            if (RT_FAILURE(rc))
    999                 RTMsgError("Failed to inform worker thread of a new client");
     999                LogRel(("Failed to inform worker thread of a new client, rc=%Rrc\n", rc));
    10001000        }
    10011001        else
    10021002        {
    1003             RTMsgError("Creating new client structure failed with out of memory error\n");
     1003            LogRel(("Creating new client structure failed with out of memory error\n"));
    10041004            pThis->pTransport->pfnNotifyBye(pThis->pTransportInst, pTransportClient);
    10051005        }
     
    10621062                    return VINF_SUCCESS;
    10631063                else
    1064                     RTMsgError("Creating the client worker thread failed with %Rrc\n", rc);
     1064                    LogRel(("Creating the client worker thread failed with %Rrc\n", rc));
    10651065
    10661066                RTPipeClose(pThis->hPipeR);
     
    10681068            }
    10691069            else
    1070                 RTMsgError("Creating communications pipe failed with %Rrc\n", rc);
     1070                LogRel(("Creating communications pipe failed with %Rrc\n", rc));
    10711071
    10721072            RTPollSetDestroy(pThis->hPollSet);
    10731073        }
    10741074        else
    1075             RTMsgError("Creating pollset failed with %Rrc\n", rc);
     1075            LogRel(("Creating pollset failed with %Rrc\n", rc));
    10761076
    10771077        RTCritSectDelete(&pThis->CritSectClients);
    10781078    }
    10791079    else
    1080         RTMsgError("Creating global critical section failed with %Rrc\n", rc);
     1080        LogRel(("Creating global critical section failed with %Rrc\n", rc));
    10811081
    10821082    return rc;
  • trunk/src/VBox/Devices/Audio/AudioTestServiceTcp.cpp

    r90830 r90868  
    2121*********************************************************************************************************************************/
    2222#define LOG_GROUP LOG_GROUP_AUDIO_TEST
     23#include <iprt/log.h>
     24
    2325#include <iprt/asm.h>
    2426#include <iprt/assert.h>
    2527#include <iprt/critsect.h>
    2628#include <iprt/err.h>
    27 #include <iprt/log.h>
    2829#include <iprt/mem.h>
    2930#include <iprt/message.h>
     
    313314    int rc;
    314315
     316    LogFunc(("enmMode=%#x\n", pThis->enmMode));
     317
    315318    if (pThis->enmMode == ATSTCPMODE_SERVER)
    316319    {
     
    414417        int rc = RTTcpServerDestroy(pThis->pTcpServer);
    415418        if (RT_FAILURE(rc))
    416             RTMsgInfo("RTTcpServerDestroy failed in atsTcpNotifyReboot: %Rrc", rc);
     419            LogRel(("RTTcpServerDestroy failed in atsTcpNotifyReboot: %Rrc", rc));
    417420        pThis->pTcpServer = NULL;
    418421    }
     
    680683        int rc = RTTcpServerDestroy(pThis->pTcpServer);
    681684        if (RT_FAILURE(rc))
    682             RTMsgInfo("RTTcpServerDestroy failed in atsTcpTerm: %Rrc", rc);
     685            LogRel(("RTTcpServerDestroy failed in atsTcpTerm: %Rrc", rc));
    683686        pThis->pTcpServer        = NULL;
    684687    }
     
    735738            if (rc == VERR_NET_DOWN)
    736739            {
    737                 RTMsgInfo("RTTcpServerCreateEx(%s, %u,) failed: %Rrc, retrying for 20 seconds...\n",
    738                           pThis->szBindAddr[0] ? pThis->szBindAddr : NULL, pThis->uBindPort, rc);
     740                LogRel2(("RTTcpServerCreateEx(%s, %u,) failed: %Rrc, retrying for 20 seconds...\n",
     741                         pThis->szBindAddr[0] ? pThis->szBindAddr : NULL, pThis->uBindPort, rc));
    739742                uint64_t StartMs = RTTimeMilliTS();
    740743                do
     
    745748                         && RTTimeMilliTS() - StartMs < 20000);
    746749                if (RT_SUCCESS(rc))
    747                     RTMsgInfo("RTTcpServerCreateEx succceeded.\n");
     750                    LogRel2(("RTTcpServerCreateEx succceeded\n"));
    748751            }
    749752
    750753            if (RT_FAILURE(rc))
    751754            {
    752                 RTMsgError("RTTcpServerCreateEx(%s, %u,) failed: %Rrc\n",
    753                            pThis->szBindAddr[0] ? pThis->szBindAddr : NULL, pThis->uBindPort, rc);
     755                LogRel(("RTTcpServerCreateEx(%s, %u,) failed: %Rrc\n",
     756                        pThis->szBindAddr[0] ? pThis->szBindAddr : NULL, pThis->uBindPort, rc));
    754757            }
    755758        }
  • trunk/src/VBox/ValidationKit/utils/audio/vkatCommon.cpp

    r90851 r90868  
    2929*   Header Files                                                                                                                 *
    3030*********************************************************************************************************************************/
     31#define LOG_GROUP LOG_GROUP_AUDIO_TEST
     32#include <iprt/log.h>
    3133
    3234#include <iprt/ctype.h>
     
    526528    PAUDIOTESTENV   pTstEnv = pCtx->pTstEnv;
    527529
    528     RTTestPrintf(g_hTest, RTTESTLVL_DEBUG, "Beginning test set '%s' in '%s'\n", pszTag, pTstEnv->szPathTemp);
     530    RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Beginning test set '%s' in '%s'\n", pszTag, pTstEnv->szPathTemp);
    529531
    530532    return AudioTestSetCreate(&pTstEnv->Set, pTstEnv->szPathTemp, pszTag);
     
    540542    PAUDIOTESTENV   pTstEnv = pCtx->pTstEnv;
    541543
    542     RTTestPrintf(g_hTest, RTTESTLVL_DEBUG, "Ending test set '%s'\n", pszTag);
     544    RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Ending test set '%s'\n", pszTag);
    543545
    544546    /* Pack up everything to be ready for transmission. */
  • trunk/src/VBox/ValidationKit/utils/audio/vkatDriverStack.cpp

    r90776 r90868  
    2929*   Header Files                                                                                                                 *
    3030*********************************************************************************************************************************/
     31#define LOG_GROUP LOG_GROUP_AUDIO_TEST
     32#include <iprt/log.h>
     33
    3134#include <iprt/errcore.h>
    3235#include <iprt/message.h>
     
    854857        if (pDrvStack->pIAudioConnector)
    855858        {
     859            RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Destroying stream '%s' (IAudioConnector) ...\n", pStream->Cfg.szName);
    856860            int rc = pDrvStack->pIAudioConnector->pfnStreamDestroy(pDrvStack->pIAudioConnector, pStream, true /*fImmediate*/);
    857861            if (RT_FAILURE(rc))
     
    860864        else
    861865        {
     866            RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Destroying stream '%s' (IHostAudio) ...\n", pStream->Cfg.szName);
    862867            PAUDIOTESTDRVSTACKSTREAM pStreamAt = (PAUDIOTESTDRVSTACKSTREAM)pStream;
    863868            int rc = pDrvStack->pIHostAudio->pfnStreamDestroy(pDrvStack->pIHostAudio, &pStreamAt->Backend, true /*fImmediate*/);
     
    871876                RTTestFailed(g_hTest, "PDMIHOSTAUDIO::pfnStreamDestroy failed: %Rrc", rc);
    872877        }
     878
     879        RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Destroying stream '%s' done\n", pStream->Cfg.szName);
    873880    }
    874881}
     
    15151522    return VINF_SUCCESS;
    15161523}
    1517 
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