Skip to content

Commit b62fc46

Browse files
bjdooks-ctrichardweinberger
authored andcommitted
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>
1 parent a51b7cc commit b62fc46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/mtd/ubi/block.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ int ubiblock_create(struct ubi_volume_info *vi)
383383
/* Initialize the gendisk of this ubiblock device */
384384
gd = alloc_disk(1);
385385
if (!gd) {
386-
pr_err("UBI: block: alloc_disk failed");
386+
pr_err("UBI: block: alloc_disk failed\n");
387387
ret = -ENODEV;
388388
goto out_free_dev;
389389
}
@@ -607,7 +607,7 @@ static void __init ubiblock_create_from_param(void)
607607
desc = open_volume_desc(p->name, p->ubi_num, p->vol_id);
608608
if (IS_ERR(desc)) {
609609
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",
611611
p->ubi_num, p->vol_id, PTR_ERR(desc));
612612
continue;
613613
}
@@ -618,7 +618,7 @@ static void __init ubiblock_create_from_param(void)
618618
ret = ubiblock_create(&vi);
619619
if (ret) {
620620
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",
622622
vi.name, p->ubi_num, p->vol_id, ret);
623623
continue;
624624
}

0 commit comments

Comments
 (0)