mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
vircgroup: Add some VIR_DEBUG statements
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>
This commit is contained in:
parent
b5290a6e6e
commit
a95e585e13
@ -1157,7 +1157,8 @@ virCgroupNewMachineSystemd(const char *name,
|
|||||||
virCgroupFree(&init);
|
virCgroupFree(&init);
|
||||||
|
|
||||||
if (!path || STREQ(path, "/") || path[0] != '/') {
|
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;
|
return -2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -155,6 +155,8 @@ virCgroupV2CopyPlacement(virCgroupPtr group,
|
|||||||
const char *path,
|
const char *path,
|
||||||
virCgroupPtr parent)
|
virCgroupPtr parent)
|
||||||
{
|
{
|
||||||
|
VIR_DEBUG("group=%p path=%s parent=%p", group, path, parent);
|
||||||
|
|
||||||
if (path[0] == '/') {
|
if (path[0] == '/') {
|
||||||
if (VIR_STRDUP(group->unified.placement, path) < 0)
|
if (VIR_STRDUP(group->unified.placement, path) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
@ -200,6 +202,9 @@ virCgroupV2DetectPlacement(virCgroupPtr group,
|
|||||||
if (group->unified.placement)
|
if (group->unified.placement)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
VIR_DEBUG("group=%p path=%s controllers=%s selfpath=%s",
|
||||||
|
group, path, controllers, selfpath);
|
||||||
|
|
||||||
/* controllers == "" indicates the cgroupv2 controller path */
|
/* controllers == "" indicates the cgroupv2 controller path */
|
||||||
if (STRNEQ(controllers, ""))
|
if (STRNEQ(controllers, ""))
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user