From d051e0623c2126a7fd10f0b94edb5f7d380e97d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Wed, 21 Jun 2023 14:31:05 +0100 Subject: [PATCH] util: add logging about node suspend availability MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Peter Krempa Signed-off-by: Daniel P. Berrangé --- src/util/virnodesuspend.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util/virnodesuspend.c b/src/util/virnodesuspend.c index 01f387d6fa..37659f13ad 100644 --- a/src/util/virnodesuspend.c +++ b/src/util/virnodesuspend.c @@ -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; }