cgls: suppress output of controller name, if it's the systemd one

This commit is contained in:
Lennart Poettering
2015-11-10 17:31:31 +01:00
parent f499daf4b3
commit a6a4d3c46b
+3 -1
View 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);
}