From nobody Sat Nov 23 12:49:42 2024 Received: from cmccmta1.chinamobile.com (cmccmta6.chinamobile.com [111.22.67.139]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8AB14481C4; Wed, 13 Nov 2024 01:58:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=111.22.67.139 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731463086; cv=none; b=KrLJHzqi6Z+LZk2xzi538+irhBegP1/LjNxFA/Y6ZHr7nTEuP0oIyCG8Fky16QqoskXXiEVHVH7zGR2SQZW+TYsm9uOiSqF9blkhWLDECdKWBsqrsJAqL0J/LAEx8hcb5tmEpRvxTqYajGv/UY1mPABz66dADfzGNabbf9Ue+b0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731463086; c=relaxed/simple; bh=Sb/hii9sYzUkbrxUho4NcJczD6dyngF5OH681nF1keg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Eyv2gl0eoag4RoZ9V9shHAXcvAjqrJWtieVpVdcfXvBIKkihhrn837cvQ8i/0Jdt7FN/u8F5LKg2lb6W038iwtVhKlBJxqPguCcB1g3DfOXCeHjrlnNq8qwYArMQgcRZWoI63+IVBwMzZC+cr2RcMc8XPkdmJ6JTeCgMY9Onivk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com; spf=pass smtp.mailfrom=cmss.chinamobile.com; arc=none smtp.client-ip=111.22.67.139 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cmss.chinamobile.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmss.chinamobile.com X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app01-12001 (RichMail) with SMTP id 2ee1673407a8673-e3f88; Wed, 13 Nov 2024 09:58:00 +0800 (CST) X-RM-TRANSID: 2ee1673407a8673-e3f88 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[10.55.1.71]) by rmsmtp-syy-appsvr01-12001 (RichMail) with SMTP id 2ee1673407a7260-71818; Wed, 13 Nov 2024 09:58:00 +0800 (CST) X-RM-TRANSID: 2ee1673407a7260-71818 From: liujing To: povik+lin@cutebit.org Cc: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, asahi@lists.linux.dev, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, liujing Subject: [PATCH] ASoC: apple: Fix the wrong format specifier Date: Wed, 13 Nov 2024 09:57:58 +0800 Message-Id: <20241113015758.5441-1-liujing@cmss.chinamobile.com> X-Mailer: git-send-email 2.27.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 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 *s= ubstream, tdm_slot_width =3D 32; =20 if (tdm_slot_width < params_width(params)) { - dev_err(dev, "TDM slots too narrow (tdm=3D%d params=3D%d)\n", + dev_err(dev, "TDM slots too narrow (tdm=3D%u params=3D%d)\n", tdm_slot_width, params_width(params)); return -EINVAL; } --=20 2.27.0