summaryrefslogtreecommitdiff
path: root/src/systemctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/systemctl.c')
-rw-r--r--src/systemctl.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/systemctl.c b/src/systemctl.c
index 45e900c5fe..32974aecce 100644
--- a/src/systemctl.c
+++ b/src/systemctl.c
@@ -1064,7 +1064,6 @@ typedef struct UnitStatusInfo {
static void print_status_info(UnitStatusInfo *i) {
ExecStatusInfo *p;
- int r;
assert(i);
@@ -1195,10 +1194,7 @@ static void print_status_info(UnitStatusInfo *i) {
else
c = 0;
- if ((r = cg_init()) < 0)
- log_error("Failed to initialize libcg: %s", strerror(-r));
- else
- show_cgroup_recursive(i->default_control_group, "\t\t ", c);
+ show_cgroup_by_path(i->default_control_group, "\t\t ", c);
}
}