n = cgroup_controller_to_string(c);
- if (mask & bit)
+ if (FLAGS_SET(mask, bit))
(void) cg_create(n, path);
- else if (supported & bit)
+ else if (FLAGS_SET(supported, bit))
(void) cg_trim(n, path, true);
}
if (!FLAGS_SET(CGROUP_MASK_V1, bit))
continue;
- if (!(supported & bit))
+ if (!FLAGS_SET(supported, bit))
continue;
if (path_callback)
if (!FLAGS_SET(CGROUP_MASK_V1, bit))
continue;
- if (!(supported & bit))
+ if (!FLAGS_SET(supported, bit))
continue;
if (to_callback)
if (!FLAGS_SET(CGROUP_MASK_V1, bit))
continue;
- if (!(supported & bit))
+ if (!FLAGS_SET(supported, bit))
continue;
(void) cg_trim(cgroup_controller_to_string(c), path, delete_root);
const char *k;
size_t l;
- if (!(mask & CGROUP_CONTROLLER_TO_MASK(c)))
+ if (!FLAGS_SET(mask, CGROUP_CONTROLLER_TO_MASK(c)))
continue;
k = cgroup_controller_to_string(c);
if (!FLAGS_SET(CGROUP_MASK_V2, bit))
continue;
- if (!(supported & bit))
+ if (!FLAGS_SET(supported, bit))
continue;
n = cgroup_controller_to_string(c);
{
char s[1 + strlen(n) + 1];
- s[0] = mask & bit ? '+' : '-';
+ s[0] = FLAGS_SET(mask, bit) ? '+' : '-';
strcpy(s + 1, n);
if (!f) {