VirtualBox

Changeset 87969 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 5, 2021 10:46:57 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
143077
Message:

Audio/HDA: Changed LogRel() statements in hdaR3StreamSetUp() being LogRelMax(32, ...) to avoid log flooding by erroneous guest drivers.

File:
1 edited

Legend:

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

    r87965 r87969  
    268268    if (RT_FAILURE(rc))
    269269    {
    270         LogRel(("HDA: Warning: Format 0x%x for stream #%RU8 not supported\n", HDA_STREAM_REG(pThis, FMT, uSD), uSD));
     270        LogRelMax(32, ("HDA: Warning: Format 0x%x for stream #%RU8 not supported\n", HDA_STREAM_REG(pThis, FMT, uSD), uSD));
    271271        return rc;
    272272    }
     
    301301         * Note: This also involves dealing with surround setups the guest might has set up for us.
    302302         */
    303         LogRel(("HDA: Warning: More than stereo (2) channels are not supported (%RU8 requested), "
    304                 "falling back to stereo channels for stream #%RU8\n", Props.cChannels, uSD));
     303        LogRelMax(32, ("HDA: Warning: More than stereo (2) channels are not supported (%RU8 requested), "
     304                       "falling back to stereo channels for stream #%RU8\n", Props.cChannels, uSD));
    305305        Props.cChannels = 2;
    306306        Props.cShift    = PDMAUDIOPCMPROPS_MAKE_SHIFT_PARMS(Props.cbSample, Props.cChannels);
     
    557557
    558558    if (uTransferHz > 400) /* Anything above 400 Hz looks fishy -- tell the user. */
    559         LogRel(("HDA: Warning: Calculated transfer Hz rate for stream #%RU8 looks incorrect (%u), please re-run with audio debug mode and report a bug\n",
    560                 uSD, uTransferHz));
     559        LogRelMax(32, ("HDA: Warning: Calculated transfer Hz rate for stream #%RU8 looks incorrect (%u), "
     560                       "please re-run with audio debug mode and report a bug\n",
     561                       uSD, uTransferHz));
    561562
    562563    /* Set I/O scheduling hint for the backends. */
     
    697698
    698699    if (RT_FAILURE(rc))
    699         LogRel(("HDA: Initializing stream #%RU8 failed with %Rrc\n", uSD, rc));
     700        LogRelMax(32, ("HDA: Initializing stream #%RU8 failed with %Rrc\n", uSD, rc));
    700701
    701702#ifdef VBOX_WITH_DTRACE
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