mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-11 12:25:52 +00:00
util: add logging about node suspend availability
Reviewed-by: Peter Krempa <pkrempa@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
6103584284
commit
d051e0623c
@ -249,6 +249,7 @@ virNodeSuspendSupportsTargetPMUtils(unsigned int target, bool *supported)
|
|||||||
* (i.e., the PM capability is supported)
|
* (i.e., the PM capability is supported)
|
||||||
*/
|
*/
|
||||||
*supported = (status == 0);
|
*supported = (status == 0);
|
||||||
|
VIR_DEBUG("Node suspend pm-utils target %d: %d", target, *supported);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -257,6 +258,7 @@ static int
|
|||||||
virNodeSuspendSupportsTargetPMUtils(unsigned int target G_GNUC_UNUSED,
|
virNodeSuspendSupportsTargetPMUtils(unsigned int target G_GNUC_UNUSED,
|
||||||
bool *supported G_GNUC_UNUSED)
|
bool *supported G_GNUC_UNUSED)
|
||||||
{
|
{
|
||||||
|
VIR_DEBUG("Node suspend pm-utils target %d: unsupported platform", target);
|
||||||
return -2;
|
return -2;
|
||||||
}
|
}
|
||||||
#endif /* ! WITH_PM_UTILS */
|
#endif /* ! WITH_PM_UTILS */
|
||||||
@ -282,6 +284,7 @@ virNodeSuspendSupportsTargetSystemd(unsigned int target, bool *supported)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VIR_DEBUG("Node suspend systemd target %d: %d", target, ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user