From: Lennart Poettering Date: Wed, 20 Nov 2019 16:44:54 +0000 (+0100) Subject: cgls: visually separate processes from cgroups X-Git-Tag: v244-rc1~10^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a2e361dc278d5663eae68bdc1ca5b954c9076c92;p=thirdparty%2Fsystemd.git cgls: visually separate processes from cgroups Let's show them in grey, since we generally want to focus on showing the cgroups much less than the processes in them. --- diff --git a/src/shared/cgroup-show.c b/src/shared/cgroup-show.c index e07825e21ec..208d27df1a3 100644 --- a/src/shared/cgroup-show.c +++ b/src/shared/cgroup-show.c @@ -71,7 +71,7 @@ static void show_pid_array( else printf("%s%s", prefix, special_glyph(((more || i < n_pids-1) ? SPECIAL_GLYPH_TREE_BRANCH : SPECIAL_GLYPH_TREE_RIGHT))); - printf("%*"PID_PRI" %s\n", pid_width, pids[i], strna(t)); + printf("%s%*"PID_PRI" %s%s\n", ansi_grey(), pid_width, pids[i], strna(t), ansi_normal()); } }