[CRIU] [PATCH 1/8] cgroup: improve error message on bad cgroup prop open
Tycho Andersen
tycho.andersen at canonical.com
Tue Jun 21 15:41:38 PDT 2016
CC: Andrey Vagin <avagin at openvz.org>
Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
criu/cgroup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/criu/cgroup.c b/criu/cgroup.c
index d761ae6..939e220 100644
--- a/criu/cgroup.c
+++ b/criu/cgroup.c
@@ -1149,7 +1149,7 @@ static int restore_cgroup_prop(const CgroupPropEntry * cg_prop_entry_p,
cg = get_service_fd(CGROUP_YARD);
fd = openat(cg, path, O_WRONLY);
if (fd < 0) {
- pr_err("bad file stream?");
+ pr_perror("bad cgroup path: %s", path);
return -1;
}
--
2.7.4
More information about the CRIU
mailing list