Add '\n' for pr_err in function ovl_parse_param_lowerdir(), which ensures that error message is displayed at once. Signed-off-by: Zhihao Cheng <chengzhihao1@xxxxxxxxxx> --- fs/overlayfs/params.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/overlayfs/params.c b/fs/overlayfs/params.c index 8dd834c7f291..657da705db25 100644 --- a/fs/overlayfs/params.c +++ b/fs/overlayfs/params.c @@ -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; } -- 2.39.2