]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cgls: suppress output of controller name, if it's the systemd one
authorLennart Poettering <lennart@poettering.net>
Mon, 9 Nov 2015 23:36:57 +0000 (00:36 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 10 Nov 2015 16:31:31 +0000 (17:31 +0100)
src/cgls/cgls.c

index 4e9a76a100d535ac099e26629ed516f757b650d9..a5a580438a2f20116dcdaa6c46b0d39e0c032554 100644 (file)
@@ -165,8 +165,10 @@ static int get_cgroup_root(char **ret) {
 }
 
 static void show_cg_info(const char *controller, const char *path) {
-        if (cg_unified() <= 0)
+
+        if (cg_unified() <= 0 && controller && !streq(controller, SYSTEMD_CGROUP_CONTROLLER))
                 printf("Controller %s; ", controller);
+
         printf("Control group %s:\n", isempty(path) ? "/" : path);
         fflush(stdout);
 }