dbus/dbus-server-protected.h: More specific debug messages when locking the server

Otherwise, they cannot be distinguished from connection-related lock
messages.
This commit is contained in:
Ralf Habacker 2023-01-08 04:30:52 +01:00
parent 7e83dd0ec6
commit abc42f388e

View file

@ -170,13 +170,13 @@ void _dbus_server_trace_ref (DBusServer *server,
#define TRACE_LOCKS 0
#define SERVER_LOCK(server) do { \
if (TRACE_LOCKS) { _dbus_verbose ("LOCK\n"); } \
if (TRACE_LOCKS) { _dbus_verbose ("LOCK server:%p mutex:%p\n", server, (server)->mutex); } \
_dbus_rmutex_lock ((server)->mutex); \
TOOK_LOCK_CHECK (server); \
} while (0)
#define SERVER_UNLOCK(server) do { \
if (TRACE_LOCKS) { _dbus_verbose ("UNLOCK\n"); } \
if (TRACE_LOCKS) { _dbus_verbose ("UNLOCK server:%p mutex:%p\n", server, (server)->mutex); } \
RELEASING_LOCK_CHECK (server); \
_dbus_rmutex_unlock ((server)->mutex); \
} while (0)