Skip to contentSkip to conversation

service: Make DBG in '__connman_service_ipconfig_indicate_state' consistent.

PATCH Superseded Grant Erickson 2 participants 5 messages Nov 17, 2023 – Nov 25, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 58/58 service: Make DBG in '__connman_service_ipconfig_indicate_state' consistent.

This makes the DBG statement in '__connman_service_ipconfig_indicate_state' consistent in format of 'service <service_pointer> (<service_name>) type <ipconfig_type> (<ipconfig_type_name>)' with that of other DBG statements in the module.

This makes at-a-glance, columnar correlation and comparison of service activities easier.

---
 src/service.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
src/service.c +3 -3
index 81a1bebdc14b..a5aef1402933 100644
@@ -7126,11 +7126,11 @@ int __connman_service_ipconfig_indicate_state(struct connman_service *service,
 	if (old_state == new_state)
 		return -EALREADY;
 
-	DBG("service %p (%s) old state %d (%s) new state %d (%s) type %d (%s)",
+	DBG("service %p (%s) type %d (%s) old state %d (%s) new state %d (%s)",
 		service, connman_service_get_identifier(service),
+		type, __connman_ipconfig_type2string(type),
 		old_state, state2string(old_state),
-		new_state, state2string(new_state),
-		type, __connman_ipconfig_type2string(type));
+		new_state, state2string(new_state));
 
 	switch (new_state) {
 	case CONNMAN_SERVICE_STATE_UNKNOWN:
Signature · 1 line
2.42.0
#1 lore raw

PATCH v2 1/1 service: Make DBG in '__connman_service_ipconfig_indicate_state' consistent.

This makes the DBG statement in '__connman_service_ipconfig_indicate_state' consistent in format of 'service <service_pointer> (<service_name>) type <ipconfig_type> (<ipconfig_type_name>)' with that of other DBG statements in the module.

This makes at-a-glance, columnar correlation and comparison of service activities easier.

---
 src/service.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
src/service.c +3 -3
index 81a1bebdc14b..a5aef1402933 100644
@@ -7126,11 +7126,11 @@ int __connman_service_ipconfig_indicate_state(struct connman_service *service,
 	if (old_state == new_state)
 		return -EALREADY;
 
-	DBG("service %p (%s) old state %d (%s) new state %d (%s) type %d (%s)",
+	DBG("service %p (%s) type %d (%s) old state %d (%s) new state %d (%s)",
 		service, connman_service_get_identifier(service),
+		type, __connman_ipconfig_type2string(type),
 		old_state, state2string(old_state),
-		new_state, state2string(new_state),
-		type, __connman_ipconfig_type2string(type));
+		new_state, state2string(new_state));
 
 	switch (new_state) {
 	case CONNMAN_SERVICE_STATE_UNKNOWN:
Signature · 1 line
2.42.0
#2 lore raw

Any thoughts on this patch?

Quoted 36 lines · Grant Erickson

This makes the DBG statement in '__connman_service_ipconfig_indicate_state' consistent in format of 'service <service_pointer> (<service_name>) type <ipconfig_type> (<ipconfig_type_name>)' with that of other DBG statements in the module.

This makes at-a-glance, columnar correlation and comparison of service activities easier.
---
src/service.c | 6 +++---

1 file changed, 3 insertions(+), 3 deletions(-)
src/service.c +3 -3
index 81a1bebdc14b..a5aef1402933 100644
@@ -7126,11 +7126,11 @@ int __connman_service_ipconfig_indicate_state(struct connman_service *service,
 	if (old_state == new_state)
 		return -EALREADY;
 
-	DBG("service %p (%s) old state %d (%s) new state %d (%s) type %d (%s)",
+	DBG("service %p (%s) type %d (%s) old state %d (%s) new state %d (%s)",
 		service, connman_service_get_identifier(service),
+		type, __connman_ipconfig_type2string(type),
 		old_state, state2string(old_state),
-		new_state, state2string(new_state),
-		type, __connman_ipconfig_type2string(type));
+		new_state, state2string(new_state));
 
 	switch (new_state) {
 	case CONNMAN_SERVICE_STATE_UNKNOWN:
Signature · 1 line
2.42.0
Signature · 5 lines
Principal
Nuovations

[email protected]
http://www.nuovations.com/
#3 lore raw

Hi Grant,

Quoted 1 line

Any thoughts on this patch?

it just got lost in my inbox :(

Patchwork is tracking patches now, but the commit-bot is not fully functional yet. Hopefully soon we have this all automated.

Regards

Marcel

#4 lore raw
In reply to Grant Erickson

Hi Grant,

Quoted 10 lines

This makes the DBG statement in '__connman_service_ipconfig_indicate_state' consistent in format of 'service <service_pointer> (<service_name>) type <ipconfig_type> (<ipconfig_type_name>)' with that of other DBG statements in the module.

This makes at-a-glance, columnar correlation and comparison of service activities easier.
---
src/service.c | 6 +++---

1 file changed, 3 insertions(+), 3 deletions(-)

patch has been applied.

Regards

Marcel