From: Zhu Jun Date: Wed, 26 Jun 2024 08:48:59 +0000 (-0700) Subject: selftests/alsa:Fix printf format string in pcm-test.c X-Git-Tag: v6.11-rc1~108^2~9^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5b707581c072bcef086ef4c122a2ea81470a1027;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Mark Brown Link: https://patch.msgid.link/20240626084859.4350-1-zhujun2@cmss.chinamobile.com Signed-off-by: Takashi Iwai --- diff --git a/tools/testing/selftests/alsa/pcm-test.c b/tools/testing/selftests/alsa/pcm-test.c index de664dedb5418..914efcdce1ec6 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;