From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio Estevam Subject: [PATCH 5/5] ASoC: fsl_spdif: Make error message concise Date: Wed, 7 Jan 2015 13:44:36 -0200 Message-ID: <1420645476-13193-5-git-send-email-festevam@gmail.com> References: <1420645476-13193-1-git-send-email-festevam@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by alsa0.perex.cz (Postfix) with ESMTP id BD76026059A for ; Wed, 7 Jan 2015 16:45:04 +0100 (CET) Received: by mail-vc0-f170.google.com with SMTP id hy4so582334vcb.1 for ; Wed, 07 Jan 2015 07:45:04 -0800 (PST) In-Reply-To: <1420645476-13193-1-git-send-email-festevam@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: broonie@kernel.org Cc: nicoleotsuka@gmail.com, Fabio Estevam , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org From: Fabio Estevam Currently the error message uses 'np->full_name' which leads to a very verbose log that contains the full path of the node. We can have a concise log by using pdev->name instead. Signed-off-by: Fabio Estevam --- sound/soc/fsl/fsl_spdif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c index 73da1f0..75870c0 100644 --- a/sound/soc/fsl/fsl_spdif.c +++ b/sound/soc/fsl/fsl_spdif.c @@ -1189,7 +1189,7 @@ static int fsl_spdif_probe(struct platform_device *pdev) irq = platform_get_irq(pdev, 0); if (irq < 0) { - 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 irq; } -- 1.9.1