diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-05-10 18:47:33 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-05-10 18:47:33 +0200 |
commit | 945403e6edbe6bf98015aabb38b281aa89334d0a (patch) | |
tree | 83f64d3cb247b4e5070ca673b4fdf30e7a275843 /src/cgls | |
parent | core: merge duplicated functions (diff) | |
download | systemd-945403e6edbe6bf98015aabb38b281aa89334d0a.tar.xz systemd-945403e6edbe6bf98015aabb38b281aa89334d0a.zip |
path-util: introduce empty_to_root() and use it many places
Diffstat (limited to 'src/cgls')
-rw-r--r-- | src/cgls/cgls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cgls/cgls.c b/src/cgls/cgls.c index 61e0a67b83..7c7ea18b61 100644 --- a/src/cgls/cgls.c +++ b/src/cgls/cgls.c @@ -149,7 +149,7 @@ static void show_cg_info(const char *controller, const char *path) { if (cg_all_unified() == 0 && controller && !streq(controller, SYSTEMD_CGROUP_CONTROLLER)) printf("Controller %s; ", controller); - printf("Control group %s:\n", isempty(path) ? "/" : path); + printf("Control group %s:\n", empty_to_root(path)); fflush(stdout); } |