mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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)
|
int qemuAgentRef(qemuAgentPtr mon)
|
||||||
{
|
{
|
||||||
mon->refs++;
|
mon->refs++;
|
||||||
|
VIR_DEBUG("%d", mon->refs);
|
||||||
return mon->refs;
|
return mon->refs;
|
||||||
}
|
}
|
||||||
|
|
||||||
int qemuAgentUnref(qemuAgentPtr mon)
|
int qemuAgentUnref(qemuAgentPtr mon)
|
||||||
{
|
{
|
||||||
mon->refs--;
|
mon->refs--;
|
||||||
|
VIR_DEBUG("%d", mon->refs);
|
||||||
if (mon->refs == 0) {
|
if (mon->refs == 0) {
|
||||||
qemuAgentUnlock(mon);
|
qemuAgentUnlock(mon);
|
||||||
qemuAgentFree(mon);
|
qemuAgentFree(mon);
|
||||||
|
@ -167,6 +167,8 @@ static void qemuProcessHandleAgentDestroy(qemuAgentPtr agent,
|
|||||||
{
|
{
|
||||||
qemuDomainObjPrivatePtr priv;
|
qemuDomainObjPrivatePtr priv;
|
||||||
|
|
||||||
|
VIR_DEBUG("Received destroy agent=%p vm=%p", agent, vm);
|
||||||
|
|
||||||
virDomainObjLock(vm);
|
virDomainObjLock(vm);
|
||||||
priv = vm->privateData;
|
priv = vm->privateData;
|
||||||
if (priv->agent == agent)
|
if (priv->agent == agent)
|
||||||
|
Loading…
Reference in New Issue
Block a user