]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: add logging about node suspend availability
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 21 Jun 2023 13:31:05 +0000 (14:31 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 20 Jul 2023 10:01:08 +0000 (11:01 +0100)
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/util/virnodesuspend.c

index 01f387d6fa46465501d952195fb809c818081324..37659f13adaa72bc7a225262cc4457f2da61418d 100644 (file)
@@ -249,6 +249,7 @@ virNodeSuspendSupportsTargetPMUtils(unsigned int target, bool *supported)
     * (i.e., the PM capability is supported)
     */
     *supported = (status == 0);
+    VIR_DEBUG("Node suspend pm-utils target %d: %d", target, *supported);
 
     return 0;
 }
@@ -257,6 +258,7 @@ static int
 virNodeSuspendSupportsTargetPMUtils(unsigned int target G_GNUC_UNUSED,
                                     bool *supported G_GNUC_UNUSED)
 {
+    VIR_DEBUG("Node suspend pm-utils target %d: unsupported platform", target);
     return -2;
 }
 #endif /* ! WITH_PM_UTILS */
@@ -282,6 +284,7 @@ virNodeSuspendSupportsTargetSystemd(unsigned int target, bool *supported)
         return ret;
     }
 
+    VIR_DEBUG("Node suspend systemd target %d: %d", target, ret);
     return ret;
 }