Skip to content

Commit

Permalink
selftests/alsa:Fix printf format string in pcm-test.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zhu Jun authored and Takashi Iwai committed Jun 27, 2024
1 parent be8f4de commit 5b70758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/alsa/pcm-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5b70758

Please sign in to comment.