diff options
author | liujing <liujing@cmss.chinamobile.com> | 2024-11-13 09:57:58 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-11-21 14:03:18 +0000 |
commit | f32c3f01c21cdd6a354988006aaca5e3dfe478f9 (patch) | |
tree | 179b824feb808e0e42807feead6bbcb04a090afb /sound | |
parent | e038f43edaf0083f6aa7c9415d86cf28dfd152f9 (diff) |
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 <liujing@cmss.chinamobile.com>
Link: https://patch.msgid.link/20241113015758.5441-1-liujing@cmss.chinamobile.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/apple/mca.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/apple/mca.c b/sound/soc/apple/mca.c index c9e7d40c47cc..b4f4696809dd 100644 --- a/sound/soc/apple/mca.c +++ b/sound/soc/apple/mca.c @@ -616,7 +616,7 @@ static int mca_fe_hw_params(struct snd_pcm_substream *substream, tdm_slot_width = 32; if (tdm_slot_width < params_width(params)) { - dev_err(dev, "TDM slots too narrow (tdm=%d params=%d)\n", + dev_err(dev, "TDM slots too narrow (tdm=%u params=%d)\n", tdm_slot_width, params_width(params)); return -EINVAL; } |