Skip to contentSkip to conversation

ASoC: amd: Fix compile warning of argument type

PATCH New Akshu Agrawal 1 participant 1 message Mar 3, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: amd: Fix compile warning of argument type

Fixes:

Quoted 3 lines
Quoted 3 lines

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=]

      dev_err(&pdev->dev, "DMIC gpio failed err=%d\n",
---
 sound/soc/amd/acp3x-rt5682-max9836.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/amd/acp3x-rt5682-max9836.c +1 -1
index 511b8b1722aa..521c9ab4c29c 100644
@@ -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);
 	}
Signature · 1 line
2.17.1