]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
fix cgroup trace
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Fri, 24 Jul 2009 13:25:44 +0000 (15:25 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Fri, 24 Jul 2009 13:25:44 +0000 (15:25 +0200)
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 <dlezcano@fr.ibm.com>
src/lxc/conf.c

index 6295f22466b5eb7f87f110007abcea63018e9f69..41e79451426343dbec62a02e7febece63551c5ff 100644 (file)
@@ -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;
 }