cgroup: tweak log message, so that it doesn't claim we always enable controllers when we actually disable them
This commit is contained in:
parent
54b5ba1d1f
commit
94f344fb03
|
@ -2641,7 +2641,8 @@ int cg_enable_everywhere(CGroupMask supported, CGroupMask mask, const char *p) {
|
||||||
|
|
||||||
r = write_string_stream(f, s, WRITE_STRING_FILE_DISABLE_BUFFER);
|
r = write_string_stream(f, s, WRITE_STRING_FILE_DISABLE_BUFFER);
|
||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
log_debug_errno(r, "Failed to enable controller %s for %s (%s): %m", n, p, fs);
|
log_debug_errno(r, "Failed to %s controller %s for %s (%s): %m",
|
||||||
|
FLAGS_SET(mask, bit) ? "enable" : "disable", n, p, fs);
|
||||||
clearerr(f);
|
clearerr(f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue