VirtualBox

Changeset 92048 in vbox for trunk/src


Ignore:
Timestamp:
Oct 25, 2021 4:29:49 PM (3 years ago)
Author:
vboxsync
Message:

Audio/Validation Kit: Logging tweaks. ​bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp

    r92020 r92048  
    307307        RTTimeExplode(&pToneParms->Hdr.tsCreated, RTTimeNow(&NowTimeSpec));
    308308
    309         RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Test #%RU32/%RU16: Playing test tone (%RU16Hz, %RU32ms)\n",
    310                      pTstParms->idxCurrent, i, (uint16_t)pToneParms->dbFreqHz, pToneParms->msDuration);
     309        RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Test #%RU32 (%RU16/%RU16): Playing test tone (%RU16Hz, %RU32ms)\n",
     310                     pTstParms->idxCurrent, i + 1, pTstParms->cIterations, (uint16_t)pToneParms->dbFreqHz, pToneParms->msDuration);
    311311
    312312        /*
     
    326326            rc = AudioTestSvcClientTonePlay(&pTstEnv->u.Host.AtsClGuest, pToneParms);
    327327            if (RT_FAILURE(rc))
    328                 RTTestFailed(g_hTest, "Test #%RU32/%RU16: AudioTestSvcClientTonePlay() failed with %Rrc\n",
    329                              pTstParms->idxCurrent, i, rc);
     328                RTTestFailed(g_hTest, "Test #%RU32 (%RU16/%RU16): AudioTestSvcClientTonePlay() failed with %Rrc\n",
     329                             pTstParms->idxCurrent, i + 1, pTstParms->cIterations, rc);
    330330        }
    331331        else
    332             RTTestFailed(g_hTest, "Test #%RU32/%RU16: AudioTestSvcClientToneRecord() failed with %Rrc\n",
    333                          pTstParms->idxCurrent, i, rc);
     332            RTTestFailed(g_hTest, "Test #%RU32/%RU16 (%RU16/%RU16): AudioTestSvcClientToneRecord() failed with %Rrc\n",
     333                         pTstParms->idxCurrent, i + 1, pTstParms->cIterations, rc);
    334334
    335335        if (RT_SUCCESS(rc))
     
    344344        if (RT_FAILURE(rc))
    345345        {
    346             RTTestFailed(g_hTest, "Test #%RU32/%RU16: Playing test tone failed with %Rrc\n", pTstParms->idxCurrent, i, rc);
     346            RTTestFailed(g_hTest, "Test #%RU32 (%RU16/%RU16): Playing test tone failed with %Rrc\n",
     347                         pTstParms->idxCurrent, i + 1, pTstParms->cIterations, rc);
    347348            break; /* Not worth retrying, bail out. */
    348349        }
     
    405406        RTTimeExplode(&pToneParms->Hdr.tsCreated, RTTimeNow(&NowTimeSpec));
    406407
    407         RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Test #%RU32/%RU16: Recording test tone (%RU16Hz, %RU32ms)\n",
    408                      pTstParms->idxCurrent, i, (uint16_t)pToneParms->dbFreqHz, pToneParms->msDuration);
     408        RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Test #%RU32 (%RU16/%RU16): Recording test tone (%RU16Hz, %RU32ms)\n",
     409                     pTstParms->idxCurrent, i + 1, pTstParms->cIterations, (uint16_t)pToneParms->dbFreqHz, pToneParms->msDuration);
    409410
    410411        /*
     
    421422            rc = AudioTestSvcClientToneRecord(&pTstEnv->u.Host.AtsClGuest, &pTstParms->TestTone);
    422423            if (RT_FAILURE(rc))
    423                 RTTestFailed(g_hTest, "Test #%RU32/%RU16: AudioTestSvcClientToneRecord() failed with %Rrc\n",
    424                              pTstParms->idxCurrent, i, rc);
     424                RTTestFailed(g_hTest, "Test #%RU32 (%RU16/%RU16): AudioTestSvcClientToneRecord() failed with %Rrc\n",
     425                             pTstParms->idxCurrent, i + 1, pTstParms->cIterations, rc);
    425426        }
    426427        else
    427             RTTestFailed(g_hTest, "Test #%RU32/%RU16: AudioTestSvcClientTonePlay() failed with %Rrc\n",
    428                          pTstParms->idxCurrent, i, rc);
     428            RTTestFailed(g_hTest, "Test #%RU32 (%RU16/%RU16): AudioTestSvcClientTonePlay() failed with %Rrc\n",
     429                         pTstParms->idxCurrent, i + 1, pTstParms->cIterations, rc);
    429430
    430431        if (RT_SUCCESS(rc))
     
    437438        if (RT_FAILURE(rc))
    438439        {
    439             RTTestFailed(g_hTest, "Test #%RU32/%RU16: Recording test tone failed with %Rrc\n", pTstParms->idxCurrent, i, rc);
     440            RTTestFailed(g_hTest, "Test #%RU32 (%RU16/%RU16): Recording test tone failed with %Rrc\n",
     441                         pTstParms->idxCurrent, i + 1, pTstParms->cIterations, rc);
    440442            break; /* Not worth retrying, bail out. */
    441443        }
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