diff options
author | Mark Brown <broonie@kernel.org> | 2023-03-06 15:33:28 +0000 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-03-08 06:35:18 +0100 |
commit | eae872516214366274c983dd942a85c97e099dfe (patch) | |
tree | f4277b7fb5369f2e77b071102552d6ced3429df6 /tools/testing/selftests/alsa | |
parent | 7c79b10bea7a9dc1b74e2dbf4a35c19455371662 (diff) |
kselftest/alsa - mixer: Always log control names
Currently we only log the names of controls on error but it can be useful
to know what control we're testing (for example, when looking at why the
tests are taking a while to run). People looking at test logs may not have
direct access to the target system. This will increase the amount we write
to the console, hopefully that's buffered.
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230223-alsa-log-ctl-name-v1-1-ac0f10cc4db2@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/testing/selftests/alsa')
-rw-r--r-- | tools/testing/selftests/alsa/mixer-test.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/testing/selftests/alsa/mixer-test.c b/tools/testing/selftests/alsa/mixer-test.c index ac5efa42d488..e9066ef43eb6 100644 --- a/tools/testing/selftests/alsa/mixer-test.c +++ b/tools/testing/selftests/alsa/mixer-test.c @@ -422,6 +422,9 @@ static void test_ctl_name(struct ctl_data *ctl) bool name_ok = true; bool check; + ksft_print_msg("%d.%d %s\n", ctl->card->card, ctl->elem, + ctl->name); + /* Only boolean controls should end in Switch */ if (strend(ctl->name, " Switch")) { if (snd_ctl_elem_info_get_type(ctl->info) != SND_CTL_ELEM_TYPE_BOOLEAN) { |