Commit 6fe93aa1 by Serge Hallyn

cgroup.c: remove spurious ERROR messages

Because they are in probing functions. Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent d74325c4
...@@ -198,11 +198,8 @@ char *lxc_cgroup_path_get(const char *subsystem, const char *name, ...@@ -198,11 +198,8 @@ char *lxc_cgroup_path_get(const char *subsystem, const char *name,
pid_t initpid = lxc_cmd_get_init_pid(name, lxcpath); pid_t initpid = lxc_cmd_get_init_pid(name, lxcpath);
int ret; int ret;
if (initpid < 0) { if (initpid < 0)
ERROR("Error getting init pid for container %s:%s",
lxcpath, name);
return NULL; return NULL;
}
cgpath = lxc_cmd_get_cgroup_path(name, lxcpath, subsystem); cgpath = lxc_cmd_get_cgroup_path(name, lxcpath, subsystem);
if (!cgpath) if (!cgpath)
...@@ -307,10 +304,8 @@ static bool cgroup_devices_has_deny(struct lxc_handler *h, char *v) ...@@ -307,10 +304,8 @@ static bool cgroup_devices_has_deny(struct lxc_handler *h, char *v)
return -1; return -1;
} }
if (!(f = fopen(path, "r"))) { if (!(f = fopen(path, "r")))
SYSERROR("Error opening devices.list");
return -1; return -1;
}
while (getline(&line, &len, f) != -1) { while (getline(&line, &len, f) != -1) {
size_t len = strlen(line); size_t len = strlen(line);
...@@ -347,10 +342,8 @@ static bool cgroup_devices_has_allow(struct lxc_handler *h, char *v) ...@@ -347,10 +342,8 @@ static bool cgroup_devices_has_allow(struct lxc_handler *h, char *v)
return -1; return -1;
} }
if (!(f = fopen(path, "r"))) { if (!(f = fopen(path, "r")))
SYSERROR("Error opening devices.list");
return -1; return -1;
}
while (getline(&line, &len, f) != -1) { while (getline(&line, &len, f) != -1) {
size_t len = strlen(line); size_t len = strlen(line);
......
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