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


Groups > linux.kernel > #1738792 > unrolled thread

[PATCH] Bluetooth: btmrvl: *_err() and *_info() strings should end with newlines

Started byArvind Yadav <arvind.yadav.cs@gmail.com>
First post2017-09-25 09:40 +0200
Last post2017-09-25 15:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] Bluetooth: btmrvl: *_err() and *_info() strings should end with newlines Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-09-25 09:40 +0200
    Re: [PATCH] Bluetooth: btmrvl: *_err() and *_info() strings should  end with newlines Marcel Holtmann <marcel@holtmann.org> - 2017-09-25 15:40 +0200

#1738792 — [PATCH] Bluetooth: btmrvl: *_err() and *_info() strings should end with newlines

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-09-25 09:40 +0200
Subject[PATCH] Bluetooth: btmrvl: *_err() and *_info() strings should end with newlines
Message-ID<utw9J-3eX-19@gated-at.bofh.it>
pr_err(), dev_err() and pr_info() messages should terminated with
a new-line to avoid other messages being concatenated onto the end.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
---
 drivers/bluetooth/btmrvl_sdio.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c
index 03341ce9..cd709a7 100644
--- a/drivers/bluetooth/btmrvl_sdio.c
+++ b/drivers/bluetooth/btmrvl_sdio.c
@@ -64,7 +64,7 @@ static irqreturn_t btmrvl_wake_irq_bt(int irq, void *priv)
 	struct btmrvl_sdio_card *card = priv;
 	struct btmrvl_plt_wake_cfg *cfg = card->plt_wake_cfg;
 
-	pr_info("%s: wake by bt", __func__);
+	pr_info("%s: wake by bt\n", __func__);
 	cfg->wake_by_bt = true;
 	disable_irq_nosync(irq);
 
@@ -87,7 +87,7 @@ static int btmrvl_sdio_probe_of(struct device *dev,
 
 	if (!dev->of_node ||
 	    !of_match_node(btmrvl_sdio_of_match_table, dev->of_node)) {
-		pr_err("sdio platform data not available");
+		pr_err("sdio platform data not available\n");
 		return -1;
 	}
 
@@ -99,7 +99,7 @@ static int btmrvl_sdio_probe_of(struct device *dev,
 	if (cfg && card->plt_of_node) {
 		cfg->irq_bt = irq_of_parse_and_map(card->plt_of_node, 0);
 		if (!cfg->irq_bt) {
-			dev_err(dev, "fail to parse irq_bt from device tree");
+			dev_err(dev, "fail to parse irq_bt from device tree\n");
 			cfg->irq_bt = -1;
 		} else {
 			ret = devm_request_irq(dev, cfg->irq_bt,
-- 
1.9.1

[toc] | [next] | [standalone]


#1739056 — Re: [PATCH] Bluetooth: btmrvl: *_err() and *_info() strings should end with newlines

FromMarcel Holtmann <marcel@holtmann.org>
Date2017-09-25 15:40 +0200
SubjectRe: [PATCH] Bluetooth: btmrvl: *_err() and *_info() strings should end with newlines
Message-ID<utBM5-6Z8-5@gated-at.bofh.it>
In reply to#1738792
Hi Arvind,

> pr_err(), dev_err() and pr_info() messages should terminated with
> a new-line to avoid other messages being concatenated onto the end.
> 
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
> ---
> drivers/bluetooth/btmrvl_sdio.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web