chiark / gitweb /
core: log the right set of the supported controllers (#3558)
[elogind.git] / src / core / cgroup.c
index e44d2728c3958efde83a9b17c73707a38e50e600..bf8bbf5801609d1760af9580c515fde3e4f8d042 100644 (file)
@@ -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;
 }