VirtualBox

Changeset 64868 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Dec 14, 2016 1:40:27 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
112270
Message:

Assertion log formatting.

File:
1 edited

Legend:

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

    r64569 r64868  
    330330        return VERR_NOT_FOUND;
    331331
    332     AssertMsgReturn(pSink->pParent == pMixer, ("Sink '%s' is not part of mixer '%s'\n",
     332    AssertMsgReturn(pSink->pParent == pMixer, ("%s: Is not part of mixer '%s'\n",
    333333                                               pSink->pszName, pMixer->pszName), VERR_NOT_FOUND);
    334334
     
    769769    AssertPtrReturn(pSink, 0);
    770770
    771     AssertMsg(pSink->enmDir == AUDMIXSINKDIR_INPUT, ("Can't read from a non-input sink\n"));
     771    AssertMsg(pSink->enmDir == AUDMIXSINKDIR_INPUT, ("%s: Can't read from a non-input sink\n", pSink->pszName));
    772772
    773773    int rc = RTCritSectEnter(&pSink->CritSect);
     
    813813    AssertPtrReturn(pSink, 0);
    814814
    815     AssertMsg(pSink->enmDir == AUDMIXSINKDIR_OUTPUT, ("Can't write to a non-output sink\n"));
     815    AssertMsg(pSink->enmDir == AUDMIXSINKDIR_OUTPUT, ("%s: Can't write to a non-output sink\n", pSink->pszName));
    816816
    817817    int rc = RTCritSectEnter(&pSink->CritSect);
     
    15351535        return rc;
    15361536
    1537     AssertMsg(pSink->fStatus & AUDMIXSINK_STS_RUNNING, ("Can't write to a sink which is not running (anymore)\n"));
    1538     AssertMsg(pSink->enmDir == AUDMIXSINKDIR_OUTPUT,   ("Can't write to a sink which is not an output sink\n"));
     1537    AssertMsg(pSink->fStatus & AUDMIXSINK_STS_RUNNING, ("%s: Can't write to a sink which is not running (anymore)\n",
     1538                                                        pSink->pszName));
     1539    AssertMsg(pSink->enmDir == AUDMIXSINKDIR_OUTPUT,   ("%s: Can't write to a sink which is not an output sink\n",
     1540                                                        pSink->pszName));
    15391541
    15401542    Log3Func(("[%s] enmOp=%d, cbBuf=%RU32\n", pSink->pszName, enmOp, cbBuf));
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