Message ID | c167c16a535049d56f817bbede9c9f6f0a0f4c68.1681626553.git.christophe.jaillet@wanadoo.fr |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1406512vqo; Sat, 15 Apr 2023 23:44:03 -0700 (PDT) X-Google-Smtp-Source: AKy350Zm7qGYX4QKjmW21kk5swXjJ0CQVl5/YAZF7JMcOo0WlFIdXGHWdchwNU+GL+wldHYqioWF X-Received: by 2002:a17:902:ec8b:b0:1a6:62a2:2216 with SMTP id x11-20020a170902ec8b00b001a662a22216mr9732503plg.65.1681627443507; Sat, 15 Apr 2023 23:44:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681627443; cv=none; d=google.com; s=arc-20160816; b=VPTYnmLVLRwrreCGhMtn+Mj4yp2tq9r8PnuXjlS+/ScgUCsqI3rYEkIJy438P7VW+Q ZFgE5UWPhkQ5TSzxOYJ+saeoHTFv++huiHvKMl3s4VLY6u6FT5cZj9BlE+onvV/pPhW5 aKDxnvCY5LNXYiorSZKvYGtnddzIJXdRzyxEyhuSoJVke0jnV2fiZmS6WICJHMwXyOPQ N2nssPKvP7tjFkN1U2lUo3/d0impU3lKMwDD2IgDRT7d73aKJw30RvuwY7tdE3YhNEmY 9w7Ox5K7jJo1/s8dBKr0s9ufu14ZqI/qgpUHTVVnvuLXVKkBsKDsKL1+TLxSPtBsq31d bmKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=4/y1p+J5P4sf9MxwjHggSXgJ0J0v9pbQqECTb6NgUf0=; b=N5r/UJZ6oy3ESxff/xHDjcw0Jn7DTAKSVzMrV1x0jNpZ/sWLHs5MLc7/YhOCvKQEzH In50v4DRQ4oihuRekru4KXBdd7cpbcLPrj1zIgPxkQixzQC0dNEoGvMZ++ywTVkJYn+x pX09hZPzanIS/ruFPeHvxd1n0pk/CoqrzhI0v7yZTVEY6pzpbmrieVz3Tum2NeqAFcnq Xdf1S5K+SRWzYBTjvBLVXhZbDysRccTv64kQ/mVPJvF//v2wdtiBehKnpX/+M1hpWLTQ Cggj0RukUin5ox8YzCTkf/5au3H1awt1cyztBbnLXJxJwdKDDDXg70fDhtN2mxMPlm4a WnJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@orange.fr header.s=t20230301 header.b=SEYoFLJ6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m17-20020a170902db1100b001a6494cf707si9341011plx.268.2023.04.15.23.43.51; Sat, 15 Apr 2023 23:44:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@orange.fr header.s=t20230301 header.b=SEYoFLJ6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229715AbjDPG3n (ORCPT <rfc822;yuanzuo1009@gmail.com> + 99 others); Sun, 16 Apr 2023 02:29:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229582AbjDPG3m (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 16 Apr 2023 02:29:42 -0400 Received: from smtp.smtpout.orange.fr (smtp-14.smtpout.orange.fr [80.12.242.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03732F4 for <linux-kernel@vger.kernel.org>; Sat, 15 Apr 2023 23:29:39 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id nvtHpgynZXvOInvtIpyMwd; Sun, 16 Apr 2023 08:29:38 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.fr; s=t20230301; t=1681626578; bh=4/y1p+J5P4sf9MxwjHggSXgJ0J0v9pbQqECTb6NgUf0=; h=From:To:Cc:Subject:Date; b=SEYoFLJ6cBxSp77oZjHGudkSCN1Wdu0QQVaXUXyD9Tc7lStPCIDuudzD3KLpRMLp+ Pxw34MSPnY20YyCGeujLsredFK6iTizuhxu0H3P0Td9pvLCOZXzpigRMvq45ejxB3R 1blo9xNCmMMkqV7eRL48PBVqbiQFOxyhbxZUZlsBS8RGwGD3vKAcB03EiwF6wycErv 65wMuxCHWjOSFmughp/lS19wEEEXywu/G4DHvYkWAzVZebWM02j1cTkMlf1yHvLQeg oYG8rJABQnn3qBdK7bVNkUYGVfgR4ZJ/oJgLgkohRx0lhhNJDl81g9uTJRicEwoFsV 17SKFihW4aQeA== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 16 Apr 2023 08:29:38 +0200 X-ME-IP: 86.243.2.178 From: Christophe JAILLET <christophe.jaillet@wanadoo.fr> To: Shengjiu Wang <shengjiu.wang@gmail.com>, Xiubo Li <Xiubo.Lee@gmail.com>, Fabio Estevam <festevam@gmail.com>, Nicolin Chen <nicoleotsuka@gmail.com>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com> Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET <christophe.jaillet@wanadoo.fr>, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH] ASoC: fsl: Simplify an error message Date: Sun, 16 Apr 2023 08:29:34 +0200 Message-Id: <c167c16a535049d56f817bbede9c9f6f0a0f4c68.1681626553.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763314178034203258?= X-GMAIL-MSGID: =?utf-8?q?1763314178034203258?= |
Series |
ASoC: fsl: Simplify an error message
|
|
Commit Message
Christophe JAILLET
April 16, 2023, 6:29 a.m. UTC
dev_err_probe() already display the error code. There is no need to
duplicate it explicitly in the error message.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
sound/soc/fsl/fsl-asoc-card.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 4/16/2023 9:29 AM, Christophe JAILLET wrote: > dev_err_probe() already display the error code. There is no need to > duplicate it explicitly in the error message. > > Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com> Thanks, Iulia > --- > sound/soc/fsl/fsl-asoc-card.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c > index bffa1048d31e..40870668ee24 100644 > --- a/sound/soc/fsl/fsl-asoc-card.c > +++ b/sound/soc/fsl/fsl-asoc-card.c > @@ -858,7 +858,7 @@ static int fsl_asoc_card_probe(struct platform_device *pdev) > > ret = devm_snd_soc_register_card(&pdev->dev, &priv->card); > if (ret) { > - dev_err_probe(&pdev->dev, ret, "snd_soc_register_card failed: %d\n", ret); > + dev_err_probe(&pdev->dev, ret, "snd_soc_register_card failed\n"); > goto asrc_fail; > } >
On Sun, 16 Apr 2023 08:29:34 +0200, Christophe JAILLET wrote: > dev_err_probe() already display the error code. There is no need to > duplicate it explicitly in the error message. > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: fsl: Simplify an error message commit: 574399f4c997ad71fab95dd875a9ff55424f9a3d All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c index bffa1048d31e..40870668ee24 100644 --- a/sound/soc/fsl/fsl-asoc-card.c +++ b/sound/soc/fsl/fsl-asoc-card.c @@ -858,7 +858,7 @@ static int fsl_asoc_card_probe(struct platform_device *pdev) ret = devm_snd_soc_register_card(&pdev->dev, &priv->card); if (ret) { - dev_err_probe(&pdev->dev, ret, "snd_soc_register_card failed: %d\n", ret); + dev_err_probe(&pdev->dev, ret, "snd_soc_register_card failed\n"); goto asrc_fail; }