Skip to content

Commit 441e36e

Browse files
Zhihao Chengbrauner
authored andcommitted
ovl: ovl_parse_param_lowerdir: Add missed '\n' for pr_err
Add '\n' for pr_err in function ovl_parse_param_lowerdir(), which ensures that error message is displayed at once. Fixes: b36a578 ("ovl: modify layer parameter parsing") Signed-off-by: Zhihao Cheng <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent ca76ac3 commit 441e36e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/overlayfs/params.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ static int ovl_parse_param_lowerdir(const char *name, struct fs_context *fc)
449449
return 0;
450450

451451
if (*name == ':') {
452-
pr_err("cannot append lower layer");
452+
pr_err("cannot append lower layer\n");
453453
return -EINVAL;
454454
}
455455

@@ -493,7 +493,7 @@ static int ovl_parse_param_lowerdir(const char *name, struct fs_context *fc)
493493
* there are no data layers.
494494
*/
495495
if (ctx->nr_data > 0) {
496-
pr_err("regular lower layers cannot follow data lower layers");
496+
pr_err("regular lower layers cannot follow data lower layers\n");
497497
goto out_err;
498498
}
499499

0 commit comments

Comments
 (0)