mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-03 20:40:34 +01:00
libnm: add debug logging for creating/destroying NMObject
This commit is contained in:
parent
e5113a7fd9
commit
dcd0066b10
1 changed files with 10 additions and 0 deletions
|
|
@ -248,6 +248,10 @@ nm_object_init(NMObject *object)
|
|||
self->_priv = priv;
|
||||
|
||||
c_list_init(&self->obj_base.queue_notify_lst);
|
||||
|
||||
NML_DBUS_LOG(_NML_NMCLIENT_LOG_LEVEL_COERCE(NML_DBUS_LOG_LEVEL_TRACE),
|
||||
"nmobj[" NM_HASH_OBFUSCATE_PTR_FMT "]: creating",
|
||||
NM_HASH_OBFUSCATE_PTR(self));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -256,6 +260,12 @@ dispose(GObject *object)
|
|||
NMObject * self = NM_OBJECT(object);
|
||||
NMObjectPrivate *priv = NM_OBJECT_GET_PRIVATE(self);
|
||||
|
||||
if (!self->obj_base.is_disposing) {
|
||||
NML_DBUS_LOG(_NML_NMCLIENT_LOG_LEVEL_COERCE(NML_DBUS_LOG_LEVEL_TRACE),
|
||||
"nmobj[" NM_HASH_OBFUSCATE_PTR_FMT "]: disposing",
|
||||
NM_HASH_OBFUSCATE_PTR(self));
|
||||
}
|
||||
|
||||
self->obj_base.is_disposing = TRUE;
|
||||
|
||||
nm_assert(c_list_is_empty(&self->obj_base.queue_notify_lst));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue