Commit 5b707581 authored by Zhu Jun's avatar Zhu Jun Committed by Takashi Iwai

selftests/alsa:Fix printf format string in pcm-test.c

Inside of test_pcm_time() arguments are printed via printf
but '%d' is used to print @flags (of type unsigned int).
Use '%u' instead, just like we do everywhere else.
Signed-off-by: default avatarZhu Jun <zhujun2@cmss.chinamobile.com>
Reviewed-by: default avatarMark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20240626084859.4350-1-zhujun2@cmss.chinamobile.comSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent be8f4de6
......@@ -383,7 +383,7 @@ static void test_pcm_time(struct pcm_data *data, enum test_class class,
goto __close;
}
if (rrate != rate) {
snprintf(msg, sizeof(msg), "rate mismatch %ld != %d", rate, rrate);
snprintf(msg, sizeof(msg), "rate mismatch %ld != %u", rate, rrate);
goto __close;
}
rperiod_size = period_size;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment