VirtualBox

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


Ignore:
Timestamp:
Aug 31, 2018 5:57:44 PM (6 years ago)
Author:
vboxsync
Message:

Audio/DrvAudio: Logging.

File:
1 edited

Legend:

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

    r73872 r74007  
    19671967    {
    19681968        case PDMAUDIOBACKENDCBTYPE_DEVICES_CHANGED:
    1969             LogRel(("Audio: Host audio device configuration has changed\n"));
     1969            LogRel(("Audio: Device configuration of driver '%s' has changed\n", pThis->szName));
    19701970            rc = drvAudioScheduleReInitInternal(pThis);
    19711971            break;
     
    20102010        {
    20112011            if (fLog)
    2012                 LogRel(("Audio: Found %RU16 devices\n", DevEnum.cDevices));
     2012                LogRel(("Audio: Found %RU16 devices for driver '%s'\n", DevEnum.cDevices, pThis->szName));
    20132013
    20142014            PPDMAUDIODEVICE pDev;
     
    20382038        {
    20392039            if (fLog)
    2040                 LogRel(("Audio: Device enumeration failed with %Rrc\n", rc));
     2040                LogRel(("Audio: Device enumeration for driver '%s' failed with %Rrc\n", pThis->szName, rc));
    20412041            /* Not fatal. */
    20422042        }
     
    20472047
    20482048        if (fLog)
    2049             LogRel3(("Audio: Host audio backend does not support audio device enumeration, skipping\n"));
     2049            LogRel2(("Audio: Host driver '%s' does not support audio device enumeration, skipping\n", pThis->szName));
    20502050    }
    20512051
     
    20802080    if (RT_FAILURE(rc))
    20812081    {
    2082         LogRel(("Audio: Initialization of host backend failed with %Rrc\n", rc));
     2082        LogRel(("Audio: Initialization of host driver '%s' failed with %Rrc\n", pThis->szName, rc));
    20832083        return VERR_AUDIO_BACKEND_INIT_FAILED;
    20842084    }
     
    20902090    if (RT_FAILURE(rc))
    20912091    {
    2092         LogRel(("Audio: Getting host backend configuration failed with %Rrc\n", rc));
     2092        LogRel(("Audio: Getting host driver configuration failed with %Rrc\n", pThis->szName, rc));
    20932093        return VERR_AUDIO_BACKEND_INIT_FAILED;
    20942094    }
     
    20992099    LogFlowFunc(("cStreamsFreeIn=%RU8, cStreamsFreeOut=%RU8\n", pThis->In.cStreamsFree, pThis->Out.cStreamsFree));
    21002100
    2101     LogRel2(("Audio: Host audio backend supports %RU32 input streams and %RU32 output streams at once\n",
     2101    LogRel2(("Audio: Host driver '%s' supports %RU32 input streams and %RU32 output streams at once\n",
     2102             pThis->szName,
    21022103             /* Clamp for logging. Unlimited streams are defined by UINT32_MAX. */
    21032104             RT_MIN(64, pThis->In.cStreamsFree), RT_MIN(64, pThis->Out.cStreamsFree)));
     
    21202121        rc2 = pThis->pHostDrvAudio->pfnSetCallback(pThis->pHostDrvAudio, drvAudioBackendCallback);
    21212122        if (RT_FAILURE(rc2))
    2122              LogRel(("Audio: Error registering backend callback, rc=%Rrc\n", rc2));
     2123             LogRel(("Audio: Error registering callback for host driver '%s', rc=%Rrc\n", pThis->szName, rc2));
    21232124        /* Not fatal. */
    21242125    }
     
    21782179
    21792180    if (pCfg->Dbg.fEnabled)
    2180         LogRel(("Audio: Debugging enabled (audio data written to '%s')\n", pCfg->Dbg.szPathOut));
     2181        LogRel(("Audio: Debugging for driver '%s' enabled (audio data written to '%s')\n", pThis->szName, pCfg->Dbg.szPathOut));
    21812182
    21822183    /* Buffering stuff. */
     
    22022203    AssertPtrReturn(pCfgHandle, VERR_INVALID_POINTER);
    22032204    AssertPtrReturn(pDrvIns,    VERR_INVALID_POINTER);
    2204 
    2205     LogRel2(("Audio: Verbose logging enabled\n"));
    22062205
    22072206    PDRVAUDIO pThis = PDMINS_2_DATA(pDrvIns, PDRVAUDIO);
     
    22282227    CFGMR3QueryBoolDef(pThis->pCFGMNode, "OutputEnabled", &pThis->Out.fEnabled,  false);
    22292228
    2230     LogRel2(("Audio: Initial status for driver '%s': Input is %s, output is %s\n",
     2229    LogRel2(("Audio: Verbose logging for driver '%s' enabled\n", pThis->szName));
     2230
     2231    LogRel2(("Audio: Initial status for driver '%s' is: input is %s, output is %s\n",
    22312232             pThis->szName, pThis->In.fEnabled ? "enabled" : "disabled", pThis->Out.fEnabled ? "enabled" : "disabled"));
    22322233
     
    25962597    if (fEnable != *pfEnabled)
    25972598    {
    2598         LogRel(("Audio: %s %s\n",
    2599                 fEnable ? "Enabling" : "Disabling", enmDir == PDMAUDIODIR_IN ? "input" : "output"));
     2599        LogRel(("Audio: %s %s for driver '%s'\n",
     2600                fEnable ? "Enabling" : "Disabling", enmDir == PDMAUDIODIR_IN ? "input" : "output", pThis->szName));
    26002601
    26012602        PPDMAUDIOSTREAM pStream;
     
    31933194        if (!pThis->pHostDrvAudio)
    31943195        {
    3195             LogRel(("Audio: Failed to query interface for underlying host driver\n"));
     3196            LogRel(("Audio: Failed to query interface for underlying host driver '%s'\n", pThis->szName));
    31963197            rc = PDMDRV_SET_ERROR(pThis->pDrvIns, VERR_PDM_MISSING_INTERFACE_BELOW,
    31973198                                  N_("Host audio backend missing or invalid"));
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