cpuset: fix indentation and log about OOM we otherwise ignore

This commit is contained in:
Lennart Poettering
2019-11-01 10:21:53 +01:00
parent 85c3b27891
commit c259ac9aa2

View File

@@ -972,8 +972,10 @@ static void cgroup_apply_unified_cpuset(Unit *u, const CPUSet *cpus, const char
_cleanup_free_ char *buf = NULL;
buf = cpu_set_to_range_string(cpus);
if (!buf)
return;
if (!buf) {
log_oom();
return;
}
(void) set_attribute_and_warn(u, "cpuset", name, buf);
}