From: Cole Robinson Date: Thu, 26 Sep 2019 19:25:52 +0000 (-0400) Subject: vircgroup: Add some VIR_DEBUG statements X-Git-Tag: v5.8.0-rc1~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a95e585e132de71bab030c84b1f7f1d116b65695;p=thirdparty%2Flibvirt.git vircgroup: Add some VIR_DEBUG statements These helped with debugging https://bugzilla.redhat.com/show_bug.cgi?id=1612383 Reviewed-by: Pavel Hrdina Signed-off-by: Cole Robinson --- diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c index 825f62a97b..4f9d80666d 100644 --- a/src/util/vircgroup.c +++ b/src/util/vircgroup.c @@ -1157,7 +1157,8 @@ virCgroupNewMachineSystemd(const char *name, virCgroupFree(&init); if (!path || STREQ(path, "/") || path[0] != '/') { - VIR_DEBUG("Systemd didn't setup its controller"); + VIR_DEBUG("Systemd didn't setup its controller, path=%s", + NULLSTR(path)); return -2; } diff --git a/src/util/vircgroupv2.c b/src/util/vircgroupv2.c index 00a01586b7..143083e56f 100644 --- a/src/util/vircgroupv2.c +++ b/src/util/vircgroupv2.c @@ -155,6 +155,8 @@ virCgroupV2CopyPlacement(virCgroupPtr group, const char *path, virCgroupPtr parent) { + VIR_DEBUG("group=%p path=%s parent=%p", group, path, parent); + if (path[0] == '/') { if (VIR_STRDUP(group->unified.placement, path) < 0) return -1; @@ -200,6 +202,9 @@ virCgroupV2DetectPlacement(virCgroupPtr group, if (group->unified.placement) return 0; + VIR_DEBUG("group=%p path=%s controllers=%s selfpath=%s", + group, path, controllers, selfpath); + /* controllers == "" indicates the cgroupv2 controller path */ if (STRNEQ(controllers, "")) return 0;