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; diff --git a/src/lxc/cgroups/cgroup.h b/src/lxc/cgroups/cgroup.h index 976883a3c..d4dcd506b 100644 --- a/src/lxc/cgroups/cgroup.h +++ b/src/lxc/cgroups/cgroup.h @@ -102,7 +102,7 @@ struct cgroup_ops { char *container_cgroup; /* Static memory, do not free.*/ - char *monitor_pattern; + const char *monitor_pattern; /* @hierarchies * - A NULL-terminated array of struct hierarchy, one per legacy