From: Fabio Estevam Date: Tue, 7 Jan 2014 10:00:13 +0000 (-0200) Subject: ASoC: fsl: fsl_ssi: Use '%ld' to print 'long int' X-Git-Tag: upstream/snapshot3+hdmi~3494^2~11^2^2^6~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ff1b15acb44398f1a23e804fc0e178c952ee7fde;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git ASoC: fsl: fsl_ssi: Use '%ld' to print 'long int' Commit 6873ee464a (ASoC: fsl_ssi: Fix printing return code on clk error) caused the following build warning: sound/soc/fsl/fsl_ssi.c: In function 'fsl_ssi_probe': sound/soc/fsl/fsl_ssi.c:1196:6: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat] Fix it by using '%ld' to print the 'long int' format. Signed-off-by: Fabio Estevam Signed-off-by: Mark Brown --- diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index 6e3d38a..816ae4b 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c @@ -1176,7 +1176,7 @@ static int fsl_ssi_probe(struct platform_device *pdev) */ ssi_private->baudclk = devm_clk_get(&pdev->dev, "baud"); if (IS_ERR(ssi_private->baudclk)) - dev_warn(&pdev->dev, "could not get baud clock: %d\n", + dev_warn(&pdev->dev, "could not get baud clock: %ld\n", PTR_ERR(ssi_private->baudclk)); else clk_prepare_enable(ssi_private->baudclk);