Commit 441e36ef authored by Zhihao Cheng's avatar Zhihao Cheng Committed by Christian Brauner

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: b36a5780 ("ovl: modify layer parameter parsing")
Signed-off-by: default avatarZhihao Cheng <chengzhihao1@huawei.com>
Link: https://lore.kernel.org/r/20240705011510.794025-4-chengzhihao1@huawei.comSigned-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent ca76ac36
......@@ -449,7 +449,7 @@ static int ovl_parse_param_lowerdir(const char *name, struct fs_context *fc)
return 0;
if (*name == ':') {
pr_err("cannot append lower layer");
pr_err("cannot append lower layer\n");
return -EINVAL;
}
......@@ -493,7 +493,7 @@ static int ovl_parse_param_lowerdir(const char *name, struct fs_context *fc)
* there are no data layers.
*/
if (ctx->nr_data > 0) {
pr_err("regular lower layers cannot follow data lower layers");
pr_err("regular lower layers cannot follow data lower layers\n");
goto out_err;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment