Skip to content

Commit 5b70758

Browse files
Zhu Juntiwai
authored andcommitted
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: Zhu Jun <zhujun2@cmss.chinamobile.com> Reviewed-by: Mark Brown <broonie@kernel.org> Link: https://patch.msgid.link/20240626084859.4350-1-zhujun2@cmss.chinamobile.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent be8f4de commit 5b70758

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ static void test_pcm_time(struct pcm_data *data, enum test_class class,
383383
goto __close;
384384
}
385385
if (rrate != rate) {
386-
snprintf(msg, sizeof(msg), "rate mismatch %ld != %d", rate, rrate);
386+
snprintf(msg, sizeof(msg), "rate mismatch %ld != %u", rate, rrate);
387387
goto __close;
388388
}
389389
rperiod_size = period_size;

0 commit comments

Comments
 (0)