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 <[email protected]> Reviewed-by: Mark Brown <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent be8f4de commit 5b70758

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)