[CRIU] [PATCH] cg: Add debug printing on subset mismatch

Cyrill Gorcunov gorcunov at gmail.com
Wed Jan 27 00:32:02 PST 2016


Signed-off-by: Cyrill Gorcunov <gorcunov at virtuozzo.com>
---
 cgroup.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cgroup.c b/cgroup.c
index 27be045..5dbc446 100644
--- a/cgroup.c
+++ b/cgroup.c
@@ -791,6 +791,9 @@ static int dump_sets(CgroupEntry *cg)
 		if (!cg_set_compare(set, &root_cgset->ctls, CGCMP_ISSUB)) {
 			pr_err("Set %d is not subset of %d\n",
 					set->id, root_cgset->id);
+
+			list_for_each_entry(ctl, &set->ctls, l)
+			pr_info("   `- %s of %s\n", ctl->name, ctl->path);
 			return -1;
 		}
 
-- 
2.5.0



More information about the CRIU mailing list