Skip to content

Commit 8c51c13

Browse files
Mirsad Todorovactiwai
authored andcommitted
kselftest/alsa - mixer-test: fix the number of parameters to ksft_exit_fail_msg()
Minor fix in the number of arguments to error reporting function in the test program as reported by GCC 13.2.0 warning. mixer-test.c: In function ‘find_controls’: mixer-test.c:169:44: warning: too many arguments for format [-Wformat-extra-args] 169 | ksft_exit_fail_msg("snd_ctl_poll_descriptors() failed for %d\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The number of arguments in call to ksft_exit_fail_msg() doesn't correspond to the format specifiers, so this is adjusted resembling the sibling calls to the error function. Fixes: b1446bd ("kselftest: alsa: Check for event generation when we write to controls") Cc: Mark Brown <[email protected]> Cc: Jaroslav Kysela <[email protected]> Cc: Takashi Iwai <[email protected]> Cc: Shuah Khan <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: Mirsad Todorovac <[email protected]> Acked-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent dcaca1b commit 8c51c13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/alsa/mixer-test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ static void find_controls(void)
166166
err = snd_ctl_poll_descriptors(card_data->handle,
167167
&card_data->pollfd, 1);
168168
if (err != 1) {
169-
ksft_exit_fail_msg("snd_ctl_poll_descriptors() failed for %d\n",
169+
ksft_exit_fail_msg("snd_ctl_poll_descriptors() failed for card %d: %d\n",
170170
card, err);
171171
}
172172

0 commit comments

Comments
 (0)