diff options
author | Ben Dooks <ben.dooks@codethink.co.uk> | 2017-07-26 05:53:50 -0400 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2017-09-13 16:05:30 -0400 |
commit | b62fc46217816642c57a5181a4117ae11da9813f (patch) | |
tree | b029f3efad55966881dc3626c9821a98b21da12f | |
parent | a51b7ccf3bf57956c64076987a9ad1152e896e79 (diff) |
ubi: pr_err() strings should end with newlines
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>
Signed-off-by: Richard Weinberger <richard@nod.at>
-rw-r--r-- | drivers/mtd/ubi/block.c | 6 |
1 files 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) | |||
383 | /* Initialize the gendisk of this ubiblock device */ | 383 | /* Initialize the gendisk of this ubiblock device */ |
384 | gd = alloc_disk(1); | 384 | gd = alloc_disk(1); |
385 | if (!gd) { | 385 | if (!gd) { |
386 | pr_err("UBI: block: alloc_disk failed"); | 386 | pr_err("UBI: block: alloc_disk failed\n"); |
387 | ret = -ENODEV; | 387 | ret = -ENODEV; |
388 | goto out_free_dev; | 388 | goto out_free_dev; |
389 | } | 389 | } |
@@ -607,7 +607,7 @@ static void __init ubiblock_create_from_param(void) | |||
607 | desc = open_volume_desc(p->name, p->ubi_num, p->vol_id); | 607 | desc = open_volume_desc(p->name, p->ubi_num, p->vol_id); |
608 | if (IS_ERR(desc)) { | 608 | if (IS_ERR(desc)) { |
609 | pr_err( | 609 | pr_err( |
610 | "UBI: block: can't open volume on ubi%d_%d, err=%ld", | 610 | "UBI: block: can't open volume on ubi%d_%d, err=%ld\n", |
611 | p->ubi_num, p->vol_id, PTR_ERR(desc)); | 611 | p->ubi_num, p->vol_id, PTR_ERR(desc)); |
612 | continue; | 612 | continue; |
613 | } | 613 | } |
@@ -618,7 +618,7 @@ static void __init ubiblock_create_from_param(void) | |||
618 | ret = ubiblock_create(&vi); | 618 | ret = ubiblock_create(&vi); |
619 | if (ret) { | 619 | if (ret) { |
620 | pr_err( | 620 | pr_err( |
621 | "UBI: block: can't add '%s' volume on ubi%d_%d, err=%d", | 621 | "UBI: block: can't add '%s' volume on ubi%d_%d, err=%d\n", |
622 | vi.name, p->ubi_num, p->vol_id, ret); | 622 | vi.name, p->ubi_num, p->vol_id, ret); |
623 | continue; | 623 | continue; |
624 | } | 624 | } |