ASoC: fsl_ssi: Make error message concise
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 7 Jan 2015 15:44:32 +0000 (13:44 -0200)
committerMark Brown <broonie@kernel.org>
Thu, 8 Jan 2015 18:34:26 +0000 (18:34 +0000)
Currently the error message uses 'np->full_name' which leads to a very verbose
log as:

fsl-ssi-dai 202c000.ssi: no irq for node /soc/aips-bus@02000000/spba-bus@02000000/ssi@0202c000

We can have a concise log by using pdev->name instead:

fsl-ssi-dai 202c000.ssi: no irq for node 202c000.ssi

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_ssi.c

index a65f17d57ffb44733b7858364678581308dea040..fa19507ca4e6138393d3b5bf3b952380d20483b7 100644 (file)
@@ -1363,7 +1363,7 @@ static int fsl_ssi_probe(struct platform_device *pdev)
 
        ssi_private->irq = platform_get_irq(pdev, 0);
        if (!ssi_private->irq) {
-               dev_err(&pdev->dev, "no irq for node %s\n", np->full_name);
+               dev_err(&pdev->dev, "no irq for node %s\n", pdev->name);
                return -ENXIO;
        }