VirtualBox

Changeset 91074 in vbox


Ignore:
Timestamp:
Sep 1, 2021 5:35:49 PM (3 years ago)
Author:
vboxsync
Message:

Audio/Main: Made the extra-data debug switch a bit more flexible by adding an optional debug level to also debug audio testing stuff. ​bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r91021 r91074  
    30113011            const bool fDebugEnabled = strTmp.equalsIgnoreCase("true") || strTmp.equalsIgnoreCase("1");
    30123012
     3013            GetExtraDataBoth(virtualBox, pMachine, "VBoxInternal2/Audio/Debug/Level", &strTmp);
     3014            const uint32_t uDebugLevel = strTmp.toUInt32();
     3015
    30133016            Utf8Str strDebugPathOut;
    30143017            GetExtraDataBoth(virtualBox, pMachine, "VBoxInternal2/Audio/Debug/PathOut", &strDebugPathOut);
     
    32773280                 * Tweak the logging groups.
    32783281                 */
     3282                Utf8Str strGroups("drv_host_audio.e.l.l2.l3.f"
     3283                                  " drv_audio.e.l.l2.l3.f"
     3284                                  " audio_mixer.e.l.l2.l3.f"
     3285                                  " dev_hda_codec.e.l.l2.l3.f"
     3286                                  " dev_hda.e.l.l2.l3.f"
     3287                                  " dev_ac97.e.l.l2.l3.f"
     3288                                  " dev_sb16.e.l.l2.l3.f");
     3289
     3290                if (uDebugLevel)
     3291                    strGroups += " audio_test.e.l.l2.l3.f";
     3292
    32793293                rc = RTLogGroupSettings(RTLogRelGetDefaultInstance(),
    3280                                         "drv_host_audio.e.l.l2.l3.f"
    3281                                         " drv_audio.e.l.l2.l3.f"
    3282                                         " audio_mixer.e.l.l2.l3.f"
    3283                                         " audio_test.e.l.l2.l3.f"
    3284                                         " dev_hda_codec.e.l.l2.l3.f"
    3285                                         " dev_hda.e.l.l2.l3.f"
    3286                                         " dev_ac97.e.l.l2.l3.f"
    3287                                         " dev_sb16.e.l.l2.l3.f");
     3294                                        strGroups.c_str());
    32883295                if (RT_FAILURE(rc))
    32893296                    LogRel(("Audio: Setting debug logging failed, rc=%Rrc\n", rc));
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