From 7e83dd0ec69769c5f50d05fd7126ba397733d8d6 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Sun, 8 Jan 2023 21:15:47 +0100 Subject: [PATCH] _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. --- dbus/dbus-connection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbus/dbus-connection.c b/dbus/dbus-connection.c index ae30203e..39fa94dd 100644 --- a/dbus/dbus-connection.c +++ b/dbus/dbus-connection.c @@ -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