X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fsystemctl.c;h=32974aecceced7b1e45fa188590c3082f9672ab8;hb=35d2e7ec19f8d3960a14dc04642060ccee3faa43;hp=45e900c5fe0b9f67db7959a4a866e96bd270e28f;hpb=dbd821acb4d91181b309860bb4d4b711b38da7b4;p=elogind.git diff --git a/src/systemctl.c b/src/systemctl.c index 45e900c5f..32974aecc 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); } }