linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mwifiex: fixup error messages
@ 2016-05-10  6:21 Wei-Ning Huang
  2016-05-11 19:01 ` Kalle Valo
  0 siblings, 1 reply; 2+ messages in thread
From: Wei-Ning Huang @ 2016-05-10  6:21 UTC (permalink / raw)
  To: Linux-Wireless; +Cc: LKML, Wei-Ning Huang

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: mwifiex: fixup error messages
  2016-05-10  6:21 [PATCH] mwifiex: fixup error messages Wei-Ning Huang
@ 2016-05-11 19:01 ` Kalle Valo
  0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2016-05-11 19:01 UTC (permalink / raw)
  To: Wei-Ning Huang; +Cc: Linux-Wireless, LKML, Wei-Ning Huang

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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-05-11 19:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-10  6:21 [PATCH] mwifiex: fixup error messages Wei-Ning Huang
2016-05-11 19:01 ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).