From fbd37e10b6350cbdef903319618399a8b6f7f23e Mon Sep 17 00:00:00 2001 From: Evgeny Vereshchagin Date: Mon, 20 Jun 2016 21:40:46 +0300 Subject: [PATCH] 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 --- src/core/cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2