Skip to content

Commit 5296618

Browse files
stroesekeveryang
authored andcommitted
UPSTREAM: mtd: ubi: Add missing newlines in ubi_init()
I just stumbled over some cluttered UBI messages. It seems some newline chars are missing in the current U-Boot UBI source. Lets fix this in U-Boot as well (Linux has those fixes already). Change-Id: I21c13a3ef73aa78d4cf32721b1dd21cab186e8bd Signed-off-by: Stefan Roese <[email protected]> Cc: Heiko Schocher <[email protected]> Signed-off-by: Jon Lin <[email protected]> (cherry picked from commit 78306cb)
1 parent 829ac35 commit 5296618

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/mtd/ubi/build.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ int ubi_init(void)
12511251
BUILD_BUG_ON(sizeof(struct ubi_vid_hdr) != 64);
12521252

12531253
if (mtd_devs > UBI_MAX_DEVICES) {
1254-
pr_err("UBI error: too many MTD devices, maximum is %d",
1254+
pr_err("UBI error: too many MTD devices, maximum is %d\n",
12551255
UBI_MAX_DEVICES);
12561256
return -EINVAL;
12571257
}
@@ -1263,7 +1263,7 @@ int ubi_init(void)
12631263

12641264
err = misc_register(&ubi_ctrl_cdev);
12651265
if (err) {
1266-
pr_err("UBI error: cannot register device");
1266+
pr_err("UBI error: cannot register device\n");
12671267
goto out;
12681268
}
12691269

@@ -1290,7 +1290,7 @@ int ubi_init(void)
12901290
mtd = open_mtd_device(p->name);
12911291
if (IS_ERR(mtd)) {
12921292
err = PTR_ERR(mtd);
1293-
pr_err("UBI error: cannot open mtd %s, error %d",
1293+
pr_err("UBI error: cannot open mtd %s, error %d\n",
12941294
p->name, err);
12951295
/* See comment below re-ubi_is_module(). */
12961296
if (ubi_is_module())
@@ -1303,7 +1303,7 @@ int ubi_init(void)
13031303
p->vid_hdr_offs, p->max_beb_per1024);
13041304
mutex_unlock(&ubi_devices_mutex);
13051305
if (err < 0) {
1306-
pr_err("UBI error: cannot attach mtd%d",
1306+
pr_err("UBI error: cannot attach mtd%d\n",
13071307
mtd->index);
13081308
put_mtd_device(mtd);
13091309

@@ -1327,7 +1327,7 @@ int ubi_init(void)
13271327

13281328
err = ubiblock_init();
13291329
if (err) {
1330-
pr_err("UBI error: block: cannot initialize, error %d", err);
1330+
pr_err("UBI error: block: cannot initialize, error %d\n", err);
13311331

13321332
/* See comment above re-ubi_is_module(). */
13331333
if (ubi_is_module())
@@ -1354,7 +1354,7 @@ int ubi_init(void)
13541354
mtd_devs = 0;
13551355
#endif
13561356
class_unregister(&ubi_class);
1357-
pr_err("UBI error: cannot initialize UBI, error %d", err);
1357+
pr_err("UBI error: cannot initialize UBI, error %d\n", err);
13581358
return err;
13591359
}
13601360
late_initcall(ubi_init);

0 commit comments

Comments
 (0)