diff options
author | Zhu Jun <[email protected]> | 2024-06-26 01:48:59 -0700 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2024-06-27 09:57:14 +0200 |
commit | 5b707581c072bcef086ef4c122a2ea81470a1027 (patch) | |
tree | fd7f1a96ea95f62e741ce19e950fabf4371b8952 | |
parent | be8f4de61417c65715a7f7661ce4770414c9a5a0 (diff) |
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]>
-rw-r--r-- | tools/testing/selftests/alsa/pcm-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/alsa/pcm-test.c b/tools/testing/selftests/alsa/pcm-test.c index de664dedb541..914efcdce1ec 100644 --- a/tools/testing/selftests/alsa/pcm-test.c +++ b/tools/testing/selftests/alsa/pcm-test.c @@ -383,7 +383,7 @@ __format: 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; |