All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][next] ASoc: amd: use correct format specifier for a long int
@ 2020-03-03 10:39 ` Colin King
  0 siblings, 0 replies; 5+ messages in thread
From: Colin King @ 2020-03-03 10:39 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	Akshu Agrawal, alsa-devel
  Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

Currently the format specifier %d is being used for a long int. Fix
the by using %ld instead.

Fixes warning:
sound/soc/amd/acp3x-rt5682-max9836.c:341:23: warning: format '%d'
 expects argument of type 'int', but argument 3 has type
 'long int' [-Wformat=]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 sound/soc/amd/acp3x-rt5682-max9836.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/amd/acp3x-rt5682-max9836.c b/sound/soc/amd/acp3x-rt5682-max9836.c
index 511b8b1722aa..521c9ab4c29c 100644
--- a/sound/soc/amd/acp3x-rt5682-max9836.c
+++ b/sound/soc/amd/acp3x-rt5682-max9836.c
@@ -338,7 +338,7 @@ static int acp3x_probe(struct platform_device *pdev)
 
 	dmic_sel = devm_gpiod_get(&pdev->dev, "dmic", GPIOD_OUT_LOW);
 	if (IS_ERR(dmic_sel)) {
-		dev_err(&pdev->dev, "DMIC gpio failed err=%d\n",
+		dev_err(&pdev->dev, "DMIC gpio failed err=%ld\n",
 			PTR_ERR(dmic_sel));
 		return PTR_ERR(dmic_sel);
 	}
-- 
2.25.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH][next] ASoc: amd: use correct format specifier for a long int
@ 2020-03-03 10:39 ` Colin King
  0 siblings, 0 replies; 5+ messages in thread
From: Colin King @ 2020-03-03 10:39 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	Akshu Agrawal, alsa-devel
  Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

Currently the format specifier %d is being used for a long int. Fix
the by using %ld instead.

Fixes warning:
sound/soc/amd/acp3x-rt5682-max9836.c:341:23: warning: format '%d'
 expects argument of type 'int', but argument 3 has type
 'long int' [-Wformat=]

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 sound/soc/amd/acp3x-rt5682-max9836.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/amd/acp3x-rt5682-max9836.c b/sound/soc/amd/acp3x-rt5682-max9836.c
index 511b8b1722aa..521c9ab4c29c 100644
--- a/sound/soc/amd/acp3x-rt5682-max9836.c
+++ b/sound/soc/amd/acp3x-rt5682-max9836.c
@@ -338,7 +338,7 @@ static int acp3x_probe(struct platform_device *pdev)
 
 	dmic_sel = devm_gpiod_get(&pdev->dev, "dmic", GPIOD_OUT_LOW);
 	if (IS_ERR(dmic_sel)) {
-		dev_err(&pdev->dev, "DMIC gpio failed err=%d\n",
+		dev_err(&pdev->dev, "DMIC gpio failed err=%ld\n",
 			PTR_ERR(dmic_sel));
 		return PTR_ERR(dmic_sel);
 	}
-- 
2.25.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH][next] ASoc: amd: use correct format specifier for a long int
  2020-03-03 10:39 ` Colin King
  (?)
@ 2020-03-03 12:33   ` Mark Brown
  -1 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2020-03-03 12:33 UTC (permalink / raw)
  To: Colin King
  Cc: Liam Girdwood, Jaroslav Kysela, Takashi Iwai, Akshu Agrawal,
	alsa-devel, kernel-janitors, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 256 bytes --]

On Tue, Mar 03, 2020 at 10:39:03AM +0000, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> Currently the format specifier %d is being used for a long int. Fix
> the by using %ld instead.

Someone already sent a fix for this.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH][next] ASoc: amd: use correct format specifier for a long int
@ 2020-03-03 12:33   ` Mark Brown
  0 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2020-03-03 12:33 UTC (permalink / raw)
  To: Colin King
  Cc: alsa-devel, Liam Girdwood, linux-kernel, kernel-janitors,
	Takashi Iwai, Akshu Agrawal

[-- Attachment #1: Type: text/plain, Size: 256 bytes --]

On Tue, Mar 03, 2020 at 10:39:03AM +0000, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> Currently the format specifier %d is being used for a long int. Fix
> the by using %ld instead.

Someone already sent a fix for this.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH][next] ASoc: amd: use correct format specifier for a long int
@ 2020-03-03 12:33   ` Mark Brown
  0 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2020-03-03 12:33 UTC (permalink / raw)
  To: Colin King
  Cc: alsa-devel, Liam Girdwood, linux-kernel, kernel-janitors,
	Takashi Iwai, Akshu Agrawal

[-- Attachment #1: Type: text/plain, Size: 256 bytes --]

On Tue, Mar 03, 2020 at 10:39:03AM +0000, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> Currently the format specifier %d is being used for a long int. Fix
> the by using %ld instead.

Someone already sent a fix for this.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-03-03 12:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-03 10:39 [PATCH][next] ASoc: amd: use correct format specifier for a long int Colin King
2020-03-03 10:39 ` Colin King
2020-03-03 12:33 ` Mark Brown
2020-03-03 12:33   ` Mark Brown
2020-03-03 12:33   ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.