* [PATCH] ASoC: max98390: fix build warning detected by -Wformat
@ 2020-06-04 8:49 Xiaoming Ni
2020-06-04 10:33 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Xiaoming Ni @ 2020-06-04 8:49 UTC (permalink / raw)
To: lgirdwood, broonie, perex, tiwai, steves.lee
Cc: nixiaoming, alex.huangjianhui, dylix.dailei, alsa-devel, linux-kernel
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@huawei.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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ASoC: max98390: fix build warning detected by -Wformat
2020-06-04 8:49 [PATCH] ASoC: max98390: fix build warning detected by -Wformat Xiaoming Ni
@ 2020-06-04 10:33 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2020-06-04 10:33 UTC (permalink / raw)
To: Xiaoming Ni
Cc: lgirdwood, perex, tiwai, steves.lee, alex.huangjianhui,
dylix.dailei, alsa-devel, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 291 bytes --]
On Thu, Jun 04, 2020 at 04:49:34PM +0800, Xiaoming Ni wrote:
> 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=]
Thanks but this was already fixed.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-06-04 10:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-04 8:49 [PATCH] ASoC: max98390: fix build warning detected by -Wformat Xiaoming Ni
2020-06-04 10:33 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).