Commit d638f57d authored by Kir Kolyshkin's avatar Kir Kolyshkin Committed by Pavel Emelyanov

cgroup.c: use pr_err() with '\n'

Don't forget '\n' when using pr_err()
Signed-off-by: 's avatarKir Kolyshkin <kir@openvz.org>
Acked-by: 's avatarAndrew Vagin <avagin@odin.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 17b92fa5
...@@ -403,7 +403,7 @@ static int add_cgroup_properties(const char *fpath, struct cgroup_dir *ncd, ...@@ -403,7 +403,7 @@ static int add_cgroup_properties(const char *fpath, struct cgroup_dir *ncd,
for (j = 0; prop_arr != NULL && prop_arr[j] != NULL; ++j) { for (j = 0; prop_arr != NULL && prop_arr[j] != NULL; ++j) {
if (snprintf(buf, PATH_MAX, "%s/%s", fpath, prop_arr[j]) >= PATH_MAX) { if (snprintf(buf, PATH_MAX, "%s/%s", fpath, prop_arr[j]) >= PATH_MAX) {
pr_err("snprintf output was truncated"); pr_err("snprintf output was truncated\n");
return -1; return -1;
} }
...@@ -969,7 +969,7 @@ static int restore_cgroup_prop(const CgroupPropEntry * cg_prop_entry_p, ...@@ -969,7 +969,7 @@ static int restore_cgroup_prop(const CgroupPropEntry * cg_prop_entry_p,
int cg; int cg;
if (!cg_prop_entry_p->value) { if (!cg_prop_entry_p->value) {
pr_err("cg_prop_entry->value was empty when should have had a value"); pr_err("cg_prop_entry->value was empty when should have had a value\n");
return -1; return -1;
} }
...@@ -1198,7 +1198,7 @@ static int prepare_cgroup_sfd(CgroupEntry *ce) ...@@ -1198,7 +1198,7 @@ static int prepare_cgroup_sfd(CgroupEntry *ce)
CgControllerEntry *ctrl = ce->controllers[i]; CgControllerEntry *ctrl = ce->controllers[i];
if (ctrl->n_cnames < 1) { if (ctrl->n_cnames < 1) {
pr_err("Each cg_controller_entry must have at least 1 controller"); pr_err("Each cg_controller_entry must have at least 1 controller\n");
goto err; goto 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