From: Serge Hallyn Date: Thu, 6 Jul 2023 23:34:59 +0000 (-0500) Subject: get_hierarchy: dont WARN about no usable controller X-Git-Tag: v6.0.0~52^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84cfe977246989d58a4bdfd7942c764e592af039;p=thirdparty%2Flxc.git get_hierarchy: dont WARN about no usable controller If I start a container with loglevel WARN, and (on a pretty stock ubuntu) do lxc-info -n $c, I get lxc-start media 20230706233337.765 WARN cgfsng - cgroups/cgfsng.c:get_hierarchy:142 - There is no useable cpuacct controller lxc-start media 20230706233337.765 WARN cgfsng - cgroups/cgfsng.c:get_hierarchy:142 - There is no useable blkio controller I don't think that's worth WARNing about, so change it to INFO. Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 850fcbb20..a9e0c91ce 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -145,7 +145,7 @@ static struct hierarchy *get_hierarchy(const struct cgroup_ops *ops, const char } if (controller) - WARN("There is no useable %s controller", controller); + INFO("There is no useable %s controller", controller); else WARN("There is no empty unified cgroup hierarchy");