]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
pid1: do not say "(null)" if no disabled controllers
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 5 Jul 2019 11:49:43 +0000 (13:49 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 19 Jul 2019 14:51:14 +0000 (16:51 +0200)
It looks like we made a mistake. The list is just empty, that's all.

src/core/cgroup.c

index 9a1aec144e4c82da4786c397cec833a34c08a1ea..c3f89d776b6c791e0cdbf75486d2dcee0fc0982f 100644 (file)
@@ -279,7 +279,7 @@ void cgroup_context_dump(CGroupContext *c, FILE* f, const char *prefix) {
                 prefix, c->memory_limit,
                 prefix, c->tasks_max,
                 prefix, cgroup_device_policy_to_string(c->device_policy),
-                prefix, strnull(disable_controllers_str),
+                prefix, strempty(disable_controllers_str),
                 prefix, yes_no(c->delegate));
 
         if (c->delegate) {