]> xenbits.xensource.com Git - libvirt.git/commitdiff
vircgroup: Add some VIR_DEBUG statements
authorCole Robinson <crobinso@redhat.com>
Thu, 26 Sep 2019 19:25:52 +0000 (15:25 -0400)
committerCole Robinson <crobinso@redhat.com>
Fri, 27 Sep 2019 20:45:23 +0000 (16:45 -0400)
These helped with debugging
https://bugzilla.redhat.com/show_bug.cgi?id=1612383

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
src/util/vircgroup.c
src/util/vircgroupv2.c

index 825f62a97b9cf637cf3664fcbce0522ddf15ef31..4f9d80666d1b0b145d457ee0570c11125043d156 100644 (file)
@@ -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;
     }
 
index 00a01586b7ba2cd67e5a9aa579f3c95de4472c29..143083e56f55c9fa3f05d9d3bb6207962e3886eb 100644 (file)
@@ -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;