[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1591260574-12717-1-git-send-email-nixiaoming@huawei.com>
Date: Thu, 4 Jun 2020 16:49:34 +0800
From: Xiaoming Ni <nixiaoming@...wei.com>
To: <lgirdwood@...il.com>, <broonie@...nel.org>, <perex@...ex.cz>,
<tiwai@...e.com>, <steves.lee@...imintegrated.com>
CC: <nixiaoming@...wei.com>, <alex.huangjianhui@...wei.com>,
<dylix.dailei@...wei.com>, <alsa-devel@...a-project.org>,
<linux-kernel@...r.kernel.org>
Subject: [PATCH] ASoC: max98390: fix build warning detected by -Wformat
Fix build warning:
sound/soc/codecs/max98390.c:781:3: warning: format '%ld' expects
argument of type 'long int', but argument 4 has type 'size_t {aka
const unsigned int}' [-Wformat=]
Signed-off-by: Xiaoming Ni <nixiaoming@...wei.com>
---
sound/soc/codecs/max98390.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/max98390.c b/sound/soc/codecs/max98390.c
index b9ce44d..884ee55 100644
--- a/sound/soc/codecs/max98390.c
+++ b/sound/soc/codecs/max98390.c
@@ -778,7 +778,7 @@ static int max98390_dsm_init(struct snd_soc_component *component)
}
dev_dbg(component->dev,
- "max98390: param fw size %ld\n",
+ "max98390: param fw size %zu\n",
fw->size);
dsm_param = (char *)fw->data;
dsm_param += MAX98390_DSM_PAYLOAD_OFFSET;
--
1.8.5.6
Powered by blists - more mailing lists