diff mbox series

[1/2] session: Add service identifier to 'DBG' in 'service_state_changed'.

Message ID 20231220020544.2272820-2-gerickson@nuovations.com (mailing list archive)
State Not Applicable, archived
Headers show
Series Add Service Identifier to a Couple of 'DBG' Statements | expand

Commit Message

Grant Erickson Dec. 20, 2023, 2:05 a.m. UTC
This adds the service identifier to the 'DBG' statement in
'service_state_changed' to aid debugging in a multi-technology
environment with "EnableOnlineToReadyTransition" asserted and for
consistency with other 'DBG' statements in other modules.
---
 src/session.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/session.c b/src/session.c
index eeefe3f28b3c..bef4b833a3cb 100644
--- a/src/session.c
+++ b/src/session.c
@@ -1937,7 +1937,9 @@  static void service_state_changed(struct connman_service *service,
 {
 	struct connman_service_info *info;
 
-	DBG("service %p state %d", service, state);
+	DBG("service %p (%s) state %d",
+		service, connman_service_get_identifier(service),
+		state);
 
 	info = g_hash_table_lookup(service_hash, service);