mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-08 22:39:56 +00:00
qemu_agent: Add some more debug prints
for agent ref count and qemuProcessHandleAgentDestroy
This commit is contained in:
parent
90a61b3940
commit
c12d787eb0
@ -155,13 +155,14 @@ static void qemuAgentFree(qemuAgentPtr mon)
|
||||
int qemuAgentRef(qemuAgentPtr mon)
|
||||
{
|
||||
mon->refs++;
|
||||
VIR_DEBUG("%d", mon->refs);
|
||||
return mon->refs;
|
||||
}
|
||||
|
||||
int qemuAgentUnref(qemuAgentPtr mon)
|
||||
{
|
||||
mon->refs--;
|
||||
|
||||
VIR_DEBUG("%d", mon->refs);
|
||||
if (mon->refs == 0) {
|
||||
qemuAgentUnlock(mon);
|
||||
qemuAgentFree(mon);
|
||||
|
@ -167,6 +167,8 @@ static void qemuProcessHandleAgentDestroy(qemuAgentPtr agent,
|
||||
{
|
||||
qemuDomainObjPrivatePtr priv;
|
||||
|
||||
VIR_DEBUG("Received destroy agent=%p vm=%p", agent, vm);
|
||||
|
||||
virDomainObjLock(vm);
|
||||
priv = vm->privateData;
|
||||
if (priv->agent == agent)
|
||||
|
Loading…
Reference in New Issue
Block a user