From 945403e6edbe6bf98015aabb38b281aa89334d0a Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 11 May 2018 01:47:33 +0900 Subject: path-util: introduce empty_to_root() and use it many places --- src/cgls/cgls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cgls') 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); } -- cgit v1.2.3