Commit 5b707581 authored by Zhu Jun's avatar Zhu Jun Committed by Takashi Iwai
Browse files

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: default avatarZhu Jun <zhujun2@cmss.chinamobile.com>
Reviewed-by: default avatarMark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20240626084859.4350-1-zhujun2@cmss.chinamobile.com


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent be8f4de6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;