chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cgroup: reimplement the last bit of libcgroup functionality natively
[elogind.git]
/
src
/
systemctl.c
diff --git
a/src/systemctl.c
b/src/systemctl.c
index 45e900c5fe0b9f67db7959a4a866e96bd270e28f..32974aecceced7b1e45fa188590c3082f9672ab8 100644
(file)
--- a/
src/systemctl.c
+++ b/
src/systemctl.c
@@
-1064,7
+1064,6
@@
typedef struct UnitStatusInfo {
static void print_status_info(UnitStatusInfo *i) {
ExecStatusInfo *p;
static void print_status_info(UnitStatusInfo *i) {
ExecStatusInfo *p;
- int r;
assert(i);
assert(i);
@@
-1195,10
+1194,7
@@
static void print_status_info(UnitStatusInfo *i) {
else
c = 0;
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);
}
}
}
}