From: Daniel Lezcano Date: Fri, 24 Jul 2009 13:25:44 +0000 (+0200) Subject: fix cgroup trace X-Git-Tag: lxc_0_6_3~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5d186114c424255dca4b2713805c877dd9d0878;p=thirdparty%2Flxc.git fix cgroup trace The trace is displayed either if the setting fails, change that by displaying the trace when the setting is successful. Signed-off-by: Daniel Lezcano --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 6295f2246..41e794514 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -941,9 +941,9 @@ static int setup_cgroup_cb(void* buffer, void *data) ret = lxc_cgroup_set(name, key, value); if (ret) ERROR("failed to set cgroup '%s' = '%s' for '%s'", - key, value, name); - - DEBUG("cgroup '%s' set to '%s'", key, value); + key, value, name); + else + DEBUG("cgroup '%s' set to '%s'", key, value); return ret; }