systemctl: make dbus PID cgroup tree output look more like systemd-cgls

Let's add the same dash of color (well, grey, …) to the dbus-based
pid/cgroup tree output as systemd-cgls has.
This commit is contained in:
Lennart Poettering
2021-10-28 18:54:52 +02:00
parent 038cae098b
commit 22d0f9a7d8
+4 -2
View File
@@ -188,11 +188,13 @@ static int dump_processes(
more = i+1 < n || cg->children;
special = special_glyph(more ? SPECIAL_GLYPH_TREE_BRANCH : SPECIAL_GLYPH_TREE_RIGHT);
fprintf(stdout, "%s%s%*"PID_PRI" %s\n",
fprintf(stdout, "%s%s%s%*"PID_PRI" %s%s\n",
prefix,
special,
ansi_grey(),
width, pids[i],
name);
name,
ansi_normal());
}
}