Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1397728 > unrolled thread

[PATCH] mwifiex: fixup error messages

Started byWei-Ning Huang <wnhuang@chromium.org>
First post2016-05-10 08:30 +0200
Last post2016-05-11 21:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] mwifiex: fixup error messages Wei-Ning Huang <wnhuang@chromium.org> - 2016-05-10 08:30 +0200
    Re: mwifiex: fixup error messages Kalle Valo <kvalo@codeaurora.org> - 2016-05-11 21:10 +0200

#1397728 — [PATCH] mwifiex: fixup error messages

FromWei-Ning Huang <wnhuang@chromium.org>
Date2016-05-10 08:30 +0200
Subject[PATCH] mwifiex: fixup error messages
Message-ID<rx9l8-59t-11@gated-at.bofh.it>
Use dev_err instead of pr_err and add newline character at the end.

Signed-off-by: Wei-Ning Huang <wnhuang@chromium.org>
---
 drivers/net/wireless/marvell/mwifiex/sdio.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/marvell/mwifiex/sdio.c b/drivers/net/wireless/marvell/mwifiex/sdio.c
index 099722e..bdc51ff 100644
--- a/drivers/net/wireless/marvell/mwifiex/sdio.c
+++ b/drivers/net/wireless/marvell/mwifiex/sdio.c
@@ -104,7 +104,7 @@ static int mwifiex_sdio_probe_of(struct device *dev, struct sdio_mmc_card *card)
 
 	if (!dev->of_node ||
 	    !of_match_node(mwifiex_sdio_of_match_table, dev->of_node)) {
-		pr_err("sdio platform data not available");
+		dev_err(dev, "sdio platform data not available\n");
 		return -1;
 	}
 
@@ -115,7 +115,8 @@ static int mwifiex_sdio_probe_of(struct device *dev, struct sdio_mmc_card *card)
 	if (cfg && card->plt_of_node) {
 		cfg->irq_wifi = irq_of_parse_and_map(card->plt_of_node, 0);
 		if (!cfg->irq_wifi) {
-			dev_err(dev, "fail to parse irq_wifi from device tree");
+			dev_err(dev,
+				"fail to parse irq_wifi from device tree\n");
 		} else {
 			ret = devm_request_irq(dev, cfg->irq_wifi,
 					       mwifiex_wake_irq_wifi,
-- 
2.1.2

[toc] | [next] | [standalone]


#1399430 — Re: mwifiex: fixup error messages

FromKalle Valo <kvalo@codeaurora.org>
Date2016-05-11 21:10 +0200
SubjectRe: mwifiex: fixup error messages
Message-ID<rxHGa-6be-13@gated-at.bofh.it>
In reply to#1397728
Wei-Ning Huang <wnhuang@chromium.org> wrote:
> Use dev_err instead of pr_err and add newline character at the end.
> 
> Signed-off-by: Wei-Ning Huang <wnhuang@chromium.org>

Thanks, 1 patch applied to wireless-drivers-next.git:

50d4d8feb913 mwifiex: fixup error messages

-- 
Sent by pwcli
https://patchwork.kernel.org/patch/9054541/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web