diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2016-06-20 21:40:46 +0300 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-06-16 10:13:01 +0200 |
commit | fbd37e10b6350cbdef903319618399a8b6f7f23e (patch) | |
tree | 3ec493a81e9042f64784bd09df05c9188bb50c1c /src/core | |
parent | f1589a158ed3fdcd1ec6b2a58f35d743bdd08cd5 (diff) |
core: log the right set of the supported controllers (#3558)
Jun 16 05:12:08 elogind[1]: Controller 'io' supported: yes
Jun 16 05:12:08 elogind[1]: Controller 'memory' supported: yes
Jun 16 05:12:08 elogind[1]: Controller 'pids' supported: yes
instead of
Jun 16 04:06:50 elogind[1]: Controller 'memory' supported: yes
Jun 16 04:06:50 elogind[1]: Controller 'devices' supported: yes
Jun 16 04:06:50 elogind[1]: Controller 'pids' supported: yes
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/cgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/cgroup.c b/src/core/cgroup.c index e44d2728c..bf8bbf580 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -1694,7 +1694,7 @@ int manager_setup_cgroup(Manager *m) { return log_error_errno(r, "Failed to determine supported controllers: %m"); for (c = 0; c < _CGROUP_CONTROLLER_MAX; c++) - log_debug("Controller '%s' supported: %s", cgroup_controller_to_string(c), yes_no(m->cgroup_supported & c)); + log_debug("Controller '%s' supported: %s", cgroup_controller_to_string(c), yes_no(m->cgroup_supported & CGROUP_CONTROLLER_TO_MASK(c))); return 0; } |