cgroup: tweak log message, so that it doesn't claim we always enable controllers when we actually disable them

This commit is contained in:
Lennart Poettering 2018-11-22 12:02:13 +01:00
parent 54b5ba1d1f
commit 94f344fb03
1 changed files with 2 additions and 1 deletions

View File

@ -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);
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);
}
}