summaryrefslogtreecommitdiff
path: root/src/cgls/cgls.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-08-31 13:03:16 +0200
committerLennart Poettering <lennart@poettering.net>2015-08-31 13:20:44 +0200
commit324496eb25b51395a00430b28fac639502df9e3e (patch)
tree5dc3486cffed49cff5a53003f85518558adabdf9 /src/cgls/cgls.c
parent90990e28c9067b37cd5a8a90ed813a036fdd0bd0 (diff)
cgls: pretty print root cgroup path
Make sure show it as "/" rather than empty string.
Diffstat (limited to 'src/cgls/cgls.c')
-rw-r--r--src/cgls/cgls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cgls/cgls.c b/src/cgls/cgls.c
index 22f33f000d..a8d910d532 100644
--- a/src/cgls/cgls.c
+++ b/src/cgls/cgls.c
@@ -263,7 +263,7 @@ int main(int argc, char *argv[]) {
if (r < 0)
goto finish;
- printf("Control group %s:\n", root);
+ printf("Control group %s:\n", isempty(root) ? "/" : root);
fflush(stdout);
r = show_cgroup(SYSTEMD_CGROUP_CONTROLLER, root, NULL, 0, arg_kernel_threads, output_flags);