connman.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add Service Identifier to a Couple of 'DBG' Statements
@ 2023-12-20  2:05 Grant Erickson
  2023-12-20  2:05 ` [PATCH 1/2] session: Add service identifier to 'DBG' in 'service_state_changed' Grant Erickson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Grant Erickson @ 2023-12-20  2:05 UTC (permalink / raw)
  To: connman

This adds the service identifier to the 'DBG' statements in
timeserver.c:'ts_reset' and session.c:'service_state_changed' to aid
debugging in a multi-technology environment with
"EnableOnlineToReadyTransition" asserted and for consistency with
other DBG statements in other modules.

Grant Erickson (2):
  session: Add service identifier to 'DBG' in 'service_state_changed'.
  timeserver: Add service identifier to 'DBG' in 'ts_reset'.

 src/session.c    | 4 +++-
 src/timeserver.c | 3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)

-- 
2.42.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] session: Add service identifier to 'DBG' in 'service_state_changed'.
  2023-12-20  2:05 [PATCH 0/2] Add Service Identifier to a Couple of 'DBG' Statements Grant Erickson
@ 2023-12-20  2:05 ` Grant Erickson
  2023-12-20  2:05 ` [PATCH 2/2] timeserver: Add service identifier to 'DBG' in 'ts_reset' Grant Erickson
  2023-12-23 12:20 ` [PATCH 0/2] Add Service Identifier to a Couple of 'DBG' Statements Marcel Holtmann
  2 siblings, 0 replies; 4+ messages in thread
From: Grant Erickson @ 2023-12-20  2:05 UTC (permalink / raw)
  To: connman

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 --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);
 
-- 
2.42.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] timeserver: Add service identifier to 'DBG' in 'ts_reset'.
  2023-12-20  2:05 [PATCH 0/2] Add Service Identifier to a Couple of 'DBG' Statements Grant Erickson
  2023-12-20  2:05 ` [PATCH 1/2] session: Add service identifier to 'DBG' in 'service_state_changed' Grant Erickson
@ 2023-12-20  2:05 ` Grant Erickson
  2023-12-23 12:20 ` [PATCH 0/2] Add Service Identifier to a Couple of 'DBG' Statements Marcel Holtmann
  2 siblings, 0 replies; 4+ messages in thread
From: Grant Erickson @ 2023-12-20  2:05 UTC (permalink / raw)
  To: connman

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 --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;
-- 
2.42.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] Add Service Identifier to a Couple of 'DBG' Statements
  2023-12-20  2:05 [PATCH 0/2] Add Service Identifier to a Couple of 'DBG' Statements Grant Erickson
  2023-12-20  2:05 ` [PATCH 1/2] session: Add service identifier to 'DBG' in 'service_state_changed' Grant Erickson
  2023-12-20  2:05 ` [PATCH 2/2] timeserver: Add service identifier to 'DBG' in 'ts_reset' Grant Erickson
@ 2023-12-23 12:20 ` Marcel Holtmann
  2 siblings, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2023-12-23 12:20 UTC (permalink / raw)
  To: Grant Erickson; +Cc: connman

Hi Grant,

> This adds the service identifier to the 'DBG' statements in
> timeserver.c:'ts_reset' and session.c:'service_state_changed' to aid
> debugging in a multi-technology environment with
> "EnableOnlineToReadyTransition" asserted and for consistency with
> other DBG statements in other modules.
> 
> Grant Erickson (2):
>  session: Add service identifier to 'DBG' in 'service_state_changed'.
>  timeserver: Add service identifier to 'DBG' in 'ts_reset'.
> 
> src/session.c    | 4 +++-
> src/timeserver.c | 3 ++-
> 2 files changed, 5 insertions(+), 2 deletions(-)

both patches have been applied.

Regards

Marcel


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-12-23 12:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-20  2:05 [PATCH 0/2] Add Service Identifier to a Couple of 'DBG' Statements Grant Erickson
2023-12-20  2:05 ` [PATCH 1/2] session: Add service identifier to 'DBG' in 'service_state_changed' Grant Erickson
2023-12-20  2:05 ` [PATCH 2/2] timeserver: Add service identifier to 'DBG' in 'ts_reset' Grant Erickson
2023-12-23 12:20 ` [PATCH 0/2] Add Service Identifier to a Couple of 'DBG' Statements Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).