diff mbox series

[2/2] timeserver: Add service identifier to 'DBG' in 'ts_reset'.

Message ID 20231220020544.2272820-3-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 'ts_reset'
to aid debugging in a multi-technology environment with
"EnableOnlineToReadyTransition" asserted and for consistency with
other 'DBG' statements in other modules.
---
 src/timeserver.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/src/timeserver.c b/src/timeserver.c
index 3eb718aa1568..d364f72870c8 100644
--- a/src/timeserver.c
+++ b/src/timeserver.c
@@ -417,7 +417,8 @@  static void ts_set_nameservers(const struct connman_service *service)
  */
 static void ts_reset(struct connman_service *service)
 {
-	DBG("service %p", service);
+	DBG("service %p (%s)",
+		service, connman_service_get_identifier(service));
 
 	if (!resolv)
 		return;