diff mbox series

[90/90] connection: Ensure function attribution 'DBG' output is consistent.

Message ID 20231206235056.322578-94-gerickson@nuovations.com (mailing list archive)
State Not Applicable, archived
Headers show
Series Add Gateway Low-priority Default Routes for Non-default Services | expand

Commit Message

Grant Erickson Dec. 6, 2023, 11:50 p.m. UTC
This ensures that function call attribution 'DBG' output is consistent
in the format "from %s()".
---
 src/connection.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/src/connection.c b/src/connection.c
index 3128110a27e2..0c1bdba7f515 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -820,7 +820,7 @@  static void gateway_config_debug(const char *function,
 		return;
 
 	if (!config)
-		DBG("from %s %s %p", function, description, config);
+		DBG("from %s() %s %p", function, description, config);
 	else {
 		if (config->vpn_phy_index >= 0)
 			vpn_phy_interface =
@@ -883,11 +883,11 @@  static void gateway_data_debug(const char *function,
 		return;
 
 	if (!data)
-		DBG("from %s %s %p", function, description, data);
+		DBG("from %s() %s %p", function, description, data);
 	else {
 		interface = connman_inet_ifname(data->index);
 
-		DBG("from %s %s %p: { index: %d (%s), service: %p (%s), "
+		DBG("from %s() %s %p: { index: %d (%s), service: %p (%s), "
 			"ipv4_config: %p, ipv6_config: %p, default_checked: %u }",
 			function,
 			description,