From: Lennart Poettering Date: Thu, 28 Oct 2021 16:54:52 +0000 (+0200) Subject: systemctl: make dbus PID cgroup tree output look more like systemd-cgls X-Git-Tag: v250-rc1~383^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F21172%2Fhead;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/shared/bus-unit-procs.c b/src/shared/bus-unit-procs.c index 50deb9252e2..87c0334fec5 100644 --- a/src/shared/bus-unit-procs.c +++ b/src/shared/bus-unit-procs.c @@ -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()); } }