mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:35:20 +00:00
src: don't include ref count in debug messages / probes
The ref count will be private to the GObject base class and we must not peek at it, even for debugging messages. Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
2bd7ed78a7
commit
a9fa62f327
@ -322,8 +322,7 @@ virAdmConnectClose(virAdmConnectPtr conn)
|
|||||||
int
|
int
|
||||||
virAdmConnectRef(virAdmConnectPtr conn)
|
virAdmConnectRef(virAdmConnectPtr conn)
|
||||||
{
|
{
|
||||||
VIR_DEBUG("conn=%p refs=%d", conn,
|
VIR_DEBUG("conn=%p", conn);
|
||||||
conn ? conn->parent.parent.u.s.refs : 0);
|
|
||||||
|
|
||||||
virResetLastError();
|
virResetLastError();
|
||||||
virCheckAdmConnectReturn(conn, -1);
|
virCheckAdmConnectReturn(conn, -1);
|
||||||
|
@ -535,8 +535,7 @@ virDomainCheckpointDelete(virDomainCheckpointPtr checkpoint,
|
|||||||
int
|
int
|
||||||
virDomainCheckpointRef(virDomainCheckpointPtr checkpoint)
|
virDomainCheckpointRef(virDomainCheckpointPtr checkpoint)
|
||||||
{
|
{
|
||||||
VIR_DEBUG("checkpoint=%p, refs=%d", checkpoint,
|
VIR_DEBUG("checkpoint=%p", checkpoint);
|
||||||
checkpoint ? checkpoint->parent.u.s.refs : 0);
|
|
||||||
|
|
||||||
virResetLastError();
|
virResetLastError();
|
||||||
|
|
||||||
|
@ -1080,8 +1080,7 @@ virDomainSnapshotDelete(virDomainSnapshotPtr snapshot,
|
|||||||
int
|
int
|
||||||
virDomainSnapshotRef(virDomainSnapshotPtr snapshot)
|
virDomainSnapshotRef(virDomainSnapshotPtr snapshot)
|
||||||
{
|
{
|
||||||
VIR_DEBUG("snapshot=%p, refs=%d", snapshot,
|
VIR_DEBUG("snapshot=%p", snapshot);
|
||||||
snapshot ? snapshot->parent.u.s.refs : 0);
|
|
||||||
|
|
||||||
virResetLastError();
|
virResetLastError();
|
||||||
|
|
||||||
|
@ -590,7 +590,7 @@ virDomainFree(virDomainPtr domain)
|
|||||||
int
|
int
|
||||||
virDomainRef(virDomainPtr domain)
|
virDomainRef(virDomainPtr domain)
|
||||||
{
|
{
|
||||||
VIR_DOMAIN_DEBUG(domain, "refs=%d", domain ? domain->parent.u.s.refs : 0);
|
VIR_DOMAIN_DEBUG(domain);
|
||||||
|
|
||||||
virResetLastError();
|
virResetLastError();
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ VIR_LOG_INIT("libvirt.host");
|
|||||||
int
|
int
|
||||||
virConnectRef(virConnectPtr conn)
|
virConnectRef(virConnectPtr conn)
|
||||||
{
|
{
|
||||||
VIR_DEBUG("conn=%p refs=%d", conn, conn ? conn->parent.parent.u.s.refs : 0);
|
VIR_DEBUG("conn=%p", conn);
|
||||||
|
|
||||||
virResetLastError();
|
virResetLastError();
|
||||||
|
|
||||||
|
@ -642,7 +642,7 @@ virInterfaceDestroy(virInterfacePtr iface, unsigned int flags)
|
|||||||
int
|
int
|
||||||
virInterfaceRef(virInterfacePtr iface)
|
virInterfaceRef(virInterfacePtr iface)
|
||||||
{
|
{
|
||||||
VIR_DEBUG("iface=%p refs=%d", iface, iface ? iface->parent.u.s.refs : 0);
|
VIR_DEBUG("iface=%p", iface);
|
||||||
|
|
||||||
virResetLastError();
|
virResetLastError();
|
||||||
|
|
||||||
|
@ -679,8 +679,7 @@ virNetworkFree(virNetworkPtr network)
|
|||||||
int
|
int
|
||||||
virNetworkRef(virNetworkPtr network)
|
virNetworkRef(virNetworkPtr network)
|
||||||
{
|
{
|
||||||
VIR_DEBUG("network=%p refs=%d", network,
|
VIR_DEBUG("network=%p", network);
|
||||||
network ? network->parent.u.s.refs : 0);
|
|
||||||
|
|
||||||
virResetLastError();
|
virResetLastError();
|
||||||
|
|
||||||
@ -1714,8 +1713,7 @@ virNetworkPortFree(virNetworkPortPtr port)
|
|||||||
int
|
int
|
||||||
virNetworkPortRef(virNetworkPortPtr port)
|
virNetworkPortRef(virNetworkPortPtr port)
|
||||||
{
|
{
|
||||||
VIR_DEBUG("port=%p refs=%d", port,
|
VIR_DEBUG("port=%p", port);
|
||||||
port ? port->parent.u.s.refs : 0);
|
|
||||||
|
|
||||||
virResetLastError();
|
virResetLastError();
|
||||||
|
|
||||||
|
@ -477,7 +477,7 @@ virNodeDeviceFree(virNodeDevicePtr dev)
|
|||||||
int
|
int
|
||||||
virNodeDeviceRef(virNodeDevicePtr dev)
|
virNodeDeviceRef(virNodeDevicePtr dev)
|
||||||
{
|
{
|
||||||
VIR_DEBUG("dev=%p refs=%d", dev, dev ? dev->parent.u.s.refs : 0);
|
VIR_DEBUG("dev=%p", dev);
|
||||||
|
|
||||||
virResetLastError();
|
virResetLastError();
|
||||||
|
|
||||||
|
@ -503,8 +503,7 @@ virNWFilterGetXMLDesc(virNWFilterPtr nwfilter, unsigned int flags)
|
|||||||
int
|
int
|
||||||
virNWFilterRef(virNWFilterPtr nwfilter)
|
virNWFilterRef(virNWFilterPtr nwfilter)
|
||||||
{
|
{
|
||||||
VIR_DEBUG("nwfilter=%p refs=%d", nwfilter,
|
VIR_DEBUG("nwfilter=%p", nwfilter);
|
||||||
nwfilter ? nwfilter->parent.u.s.refs : 0);
|
|
||||||
|
|
||||||
virResetLastError();
|
virResetLastError();
|
||||||
|
|
||||||
@ -820,8 +819,7 @@ virNWFilterBindingGetXMLDesc(virNWFilterBindingPtr binding, unsigned int flags)
|
|||||||
int
|
int
|
||||||
virNWFilterBindingRef(virNWFilterBindingPtr binding)
|
virNWFilterBindingRef(virNWFilterBindingPtr binding)
|
||||||
{
|
{
|
||||||
VIR_DEBUG("binding=%p refs=%d", binding,
|
VIR_DEBUG("binding=%p", binding);
|
||||||
binding ? binding->parent.u.s.refs : 0);
|
|
||||||
|
|
||||||
virResetLastError();
|
virResetLastError();
|
||||||
|
|
||||||
|
@ -658,8 +658,7 @@ virSecretUndefine(virSecretPtr secret)
|
|||||||
int
|
int
|
||||||
virSecretRef(virSecretPtr secret)
|
virSecretRef(virSecretPtr secret)
|
||||||
{
|
{
|
||||||
VIR_DEBUG("secret=%p refs=%d", secret,
|
VIR_DEBUG("secret=%p", secret);
|
||||||
secret ? secret->parent.u.s.refs : 0);
|
|
||||||
|
|
||||||
virResetLastError();
|
virResetLastError();
|
||||||
|
|
||||||
|
@ -872,7 +872,7 @@ virStoragePoolFree(virStoragePoolPtr pool)
|
|||||||
int
|
int
|
||||||
virStoragePoolRef(virStoragePoolPtr pool)
|
virStoragePoolRef(virStoragePoolPtr pool)
|
||||||
{
|
{
|
||||||
VIR_DEBUG("pool=%p refs=%d", pool, pool ? pool->parent.u.s.refs : 0);
|
VIR_DEBUG("pool=%p", pool);
|
||||||
|
|
||||||
virResetLastError();
|
virResetLastError();
|
||||||
|
|
||||||
@ -1909,7 +1909,7 @@ virStorageVolFree(virStorageVolPtr vol)
|
|||||||
int
|
int
|
||||||
virStorageVolRef(virStorageVolPtr vol)
|
virStorageVolRef(virStorageVolPtr vol)
|
||||||
{
|
{
|
||||||
VIR_DEBUG("vol=%p refs=%d", vol, vol ? vol->parent.u.s.refs : 0);
|
VIR_DEBUG("vol=%p", vol);
|
||||||
|
|
||||||
virResetLastError();
|
virResetLastError();
|
||||||
|
|
||||||
|
@ -85,8 +85,7 @@ virStreamNew(virConnectPtr conn,
|
|||||||
int
|
int
|
||||||
virStreamRef(virStreamPtr stream)
|
virStreamRef(virStreamPtr stream)
|
||||||
{
|
{
|
||||||
VIR_DEBUG("stream=%p refs=%d", stream,
|
VIR_DEBUG("stream=%p", stream);
|
||||||
stream ? stream->parent.u.s.refs : 0);
|
|
||||||
|
|
||||||
virResetLastError();
|
virResetLastError();
|
||||||
|
|
||||||
|
@ -4,10 +4,10 @@ provider libvirt {
|
|||||||
# binary: libvirtd
|
# binary: libvirtd
|
||||||
# module: libvirt/connection-driver/libvirt_driver_qemu.so
|
# module: libvirt/connection-driver/libvirt_driver_qemu.so
|
||||||
# Monitor lifecycle
|
# Monitor lifecycle
|
||||||
probe qemu_monitor_new(void *mon, int refs, int fd);
|
probe qemu_monitor_new(void *mon, int fd);
|
||||||
probe qemu_monitor_ref(void *mon, int refs);
|
probe qemu_monitor_ref(void *mon);
|
||||||
probe qemu_monitor_unref(void *mon, int refs);
|
probe qemu_monitor_unref(void *mon);
|
||||||
probe qemu_monitor_close(void *monm, int refs);
|
probe qemu_monitor_close(void *monm);
|
||||||
|
|
||||||
# High level monitor message processing
|
# High level monitor message processing
|
||||||
probe qemu_monitor_send_msg(void *mon, const char *msg, int fd);
|
probe qemu_monitor_send_msg(void *mon, const char *msg, int fd);
|
||||||
|
@ -714,9 +714,7 @@ qemuMonitorOpenInternal(virDomainObjPtr vm,
|
|||||||
virObjectLock(mon);
|
virObjectLock(mon);
|
||||||
qemuMonitorRegister(mon);
|
qemuMonitorRegister(mon);
|
||||||
|
|
||||||
PROBE(QEMU_MONITOR_NEW,
|
PROBE(QEMU_MONITOR_NEW, "mon=%p fd=%d", mon, mon->fd);
|
||||||
"mon=%p refs=%d fd=%d",
|
|
||||||
mon, mon->parent.parent.u.s.refs, mon->fd);
|
|
||||||
virObjectUnlock(mon);
|
virObjectUnlock(mon);
|
||||||
|
|
||||||
return mon;
|
return mon;
|
||||||
@ -865,8 +863,7 @@ qemuMonitorClose(qemuMonitorPtr mon)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
virObjectLock(mon);
|
virObjectLock(mon);
|
||||||
PROBE(QEMU_MONITOR_CLOSE,
|
PROBE(QEMU_MONITOR_CLOSE, "mon=%p", mon);
|
||||||
"mon=%p refs=%d", mon, mon->parent.parent.u.s.refs);
|
|
||||||
|
|
||||||
qemuMonitorSetDomainLogLocked(mon, NULL, NULL, NULL);
|
qemuMonitorSetDomainLogLocked(mon, NULL, NULL, NULL);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user