_dbus_connection_lock|unlock(): more specific output in lock-related debug messages

To be able to distinguish the individual instances during logging, the
category of the lock and the pointer to the DBusConnection are now also
output.
This commit is contained in:
Ralf Habacker 2023-01-08 21:15:47 +01:00
parent 6756e42760
commit 7e83dd0ec6

View file

@ -384,7 +384,7 @@ void
_dbus_connection_lock (DBusConnection *connection)
{
#ifdef TRACE_LOCKS
_dbus_verbose ("LOCK\n");
_dbus_verbose ("LOCK connection:%p mutex:%p\n", connection, connection->mutex);
#endif
_dbus_rmutex_lock ((connection)->mutex);
TOOK_LOCK_CHECK (connection);
@ -402,7 +402,7 @@ _dbus_connection_unlock (DBusConnection *connection)
DBusList *iter;
#ifdef TRACE_LOCKS
_dbus_verbose ("UNLOCK\n");
_dbus_verbose ("UNLOCK connection:%p mutex:%p\n", connection, connection->mutex);
#endif
/* If we had messages that expired (fell off the incoming or outgoing