From: Christian Brauner Date: Thu, 27 Sep 2018 11:35:34 +0000 (+0200) Subject: cgfsng: log cgroup names for monitor and container X-Git-Tag: lxc-3.1.0~80^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=529822a46fe6afef439f640c4fd4cc4e11dc6551;p=thirdparty%2Flxc.git cgfsng: log cgroup names for monitor and container Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index ca8ce0a7f..629d371ec 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -1376,8 +1376,10 @@ __cgfsng_ops static inline bool cgfsng_monitor_create(struct cgroup_ops *ops, } } while (ops->hierarchies[i] && idx > 0 && idx < 1000); - if (idx < 1000) + if (idx < 1000) { bret = true; + INFO("The monitor process uses \"%s\" as cgroup", monitor_cgroup); + } on_error: free(monitor_cgroup); @@ -1454,6 +1456,7 @@ again: } ops->container_cgroup = container_cgroup; + INFO("The container uses \"%s\" as cgroup", container_cgroup); return true;