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


Groups > linux.kernel > #1696945 > unrolled thread

[PATCH] ubi: pr_err() strings should end with newlines

Started byBen Dooks <ben.dooks@codethink.co.uk>
First post2017-07-26 12:00 +0200
Last post2017-07-26 21:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] ubi: pr_err() strings should end with newlines Ben Dooks <ben.dooks@codethink.co.uk> - 2017-07-26 12:00 +0200
    Re: [PATCH] ubi: pr_err() strings should end with newlines Richard Weinberger <richard@nod.at> - 2017-07-26 21:20 +0200

#1696945 — [PATCH] ubi: pr_err() strings should end with newlines

FromBen Dooks <ben.dooks@codethink.co.uk>
Date2017-07-26 12:00 +0200
Subject[PATCH] ubi: pr_err() strings should end with newlines
Message-ID<u7rgL-77f-27@gated-at.bofh.it>
In build.c, the following pr_err calls should be terminated with
a new-line to avoid other messages being concatenated onto the end.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
---
 drivers/mtd/ubi/block.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/mtd/ubi/block.c b/drivers/mtd/ubi/block.c
index c3963f880448..b210fdb31c98 100644
--- a/drivers/mtd/ubi/block.c
+++ b/drivers/mtd/ubi/block.c
@@ -383,7 +383,7 @@ int ubiblock_create(struct ubi_volume_info *vi)
 	/* Initialize the gendisk of this ubiblock device */
 	gd = alloc_disk(1);
 	if (!gd) {
-		pr_err("UBI: block: alloc_disk failed");
+		pr_err("UBI: block: alloc_disk failed\n");
 		ret = -ENODEV;
 		goto out_free_dev;
 	}
@@ -607,7 +607,7 @@ static void __init ubiblock_create_from_param(void)
 		desc = open_volume_desc(p->name, p->ubi_num, p->vol_id);
 		if (IS_ERR(desc)) {
 			pr_err(
-			       "UBI: block: can't open volume on ubi%d_%d, err=%ld",
+			       "UBI: block: can't open volume on ubi%d_%d, err=%ld\n",
 			       p->ubi_num, p->vol_id, PTR_ERR(desc));
 			continue;
 		}
@@ -618,7 +618,7 @@ static void __init ubiblock_create_from_param(void)
 		ret = ubiblock_create(&vi);
 		if (ret) {
 			pr_err(
-			       "UBI: block: can't add '%s' volume on ubi%d_%d, err=%d",
+			       "UBI: block: can't add '%s' volume on ubi%d_%d, err=%d\n",
 			       vi.name, p->ubi_num, p->vol_id, ret);
 			continue;
 		}
-- 
2.11.0

[toc] | [next] | [standalone]


#1697499

FromRichard Weinberger <richard@nod.at>
Date2017-07-26 21:20 +0200
Message-ID<u7A0G-4lW-23@gated-at.bofh.it>
In reply to#1696945
Ben,

Am 26.07.2017 um 11:53 schrieb Ben Dooks:
> In build.c, the following pr_err calls should be terminated with
> a new-line to avoid other messages being concatenated onto the end.
> 
> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>

Thank you for addressing this problem.
One minor nit, I'll fold all three patches into one since all do the
same and the subject is already the same.

Thanks,
//richard

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web