]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgroup.c: remove spurious ERROR messages
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 16 Aug 2013 18:34:36 +0000 (13:34 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 16 Aug 2013 18:34:36 +0000 (13:34 -0500)
Because they are in probing functions.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/cgroup.c

index 78083e8c97254f7b371abd0e4f2b619b4b0d343b..d2737eaec47c2766d4770ccc6c6476951d0a185d 100644 (file)
@@ -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);
        int ret;
 
-       if (initpid < 0) {
-               ERROR("Error getting init pid for container %s:%s",
-                       lxcpath, name);
+       if (initpid < 0)
                return NULL;
-       }
 
        cgpath = lxc_cmd_get_cgroup_path(name, lxcpath, subsystem);
        if (!cgpath)
@@ -307,10 +304,8 @@ static bool cgroup_devices_has_deny(struct lxc_handler *h, char *v)
                return -1;
        }
 
-       if (!(f = fopen(path, "r"))) {
-               SYSERROR("Error opening devices.list");
+       if (!(f = fopen(path, "r")))
                return -1;
-       }
 
        while (getline(&line, &len, f) != -1) {
                size_t len = strlen(line);
@@ -347,10 +342,8 @@ static bool cgroup_devices_has_allow(struct lxc_handler *h, char *v)
                return -1;
        }
 
-       if (!(f = fopen(path, "r"))) {
-               SYSERROR("Error opening devices.list");
+       if (!(f = fopen(path, "r")))
                return -1;
-       }
 
        while (getline(&line, &len, f) != -1) {
                size_t len = strlen(line);