[lxc-devel] [PATCH] cgroup.c: remove spurious ERROR messages

Serge Hallyn serge.hallyn at ubuntu.com
Fri Aug 16 15:56:58 UTC 2013


Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
---
 src/lxc/cgroup.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/lxc/cgroup.c b/src/lxc/cgroup.c
index 78083e8..135f2c4 100644
--- a/src/lxc/cgroup.c
+++ b/src/lxc/cgroup.c
@@ -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)
@@ -308,7 +305,6 @@ static bool cgroup_devices_has_deny(struct lxc_handler *h, char *v)
 	}
 
 	if (!(f = fopen(path, "r"))) {
-		SYSERROR("Error opening devices.list");
 		return -1;
 	}
 
@@ -348,7 +344,6 @@ static bool cgroup_devices_has_allow(struct lxc_handler *h, char *v)
 	}
 
 	if (!(f = fopen(path, "r"))) {
-		SYSERROR("Error opening devices.list");
 		return -1;
 	}
 
-- 
1.8.3.2





More information about the lxc-devel mailing list