Skip to content

Commit f32c3f0

Browse files
liujingbroonie
authored andcommitted
ASoC: apple: Fix the wrong format specifier
In the mca_fe_hw_params(), the variable tdm_slot_width is of type unsigned int, so the output should be %u Signed-off-by: liujing <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent e038f43 commit f32c3f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/apple/mca.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ static int mca_fe_hw_params(struct snd_pcm_substream *substream,
616616
tdm_slot_width = 32;
617617

618618
if (tdm_slot_width < params_width(params)) {
619-
dev_err(dev, "TDM slots too narrow (tdm=%d params=%d)\n",
619+
dev_err(dev, "TDM slots too narrow (tdm=%u params=%d)\n",
620620
tdm_slot_width, params_width(params));
621621
return -EINVAL;
622622
}

0 commit comments

Comments
 (0)