diff mbox series

[12/90] connection: Add 'DBG' to 'del_gateway_routes'.

Message ID 20231206235056.322578-13-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:49 p.m. UTC
From: Grant Erickson <erick205@umn.edu>

To aid in debugging gateway route handling in multi-technology and
-service configurations, particularly during online check-driven
failover, add additional 'DBG' statements to 'del_gateway_routes'.
---
 src/connection.c | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox series

Patch

diff --git a/src/connection.c b/src/connection.c
index 2c4c716560fe..d81ed8648175 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -833,6 +833,9 @@  static int del_gateway_routes(struct gateway_data *data,
 	int status4 = 0, status6 = 0;
 	bool do_ipv4 = false, do_ipv6 = false;
 
+	DBG("data %p type %d (%s)", data,
+		type, __connman_ipconfig_type2string(type));
+
 	GATEWAY_DATA_DBG("data", data);
 
 	if (type == CONNMAN_IPCONFIG_TYPE_IPV4)
@@ -880,6 +883,10 @@  static int del_gateway_routes(struct gateway_data *data,
 		}
 	}
 
+	DBG("status4 %d (%s) status6 %d (%s)",
+		status4, strerror(-status4),
+		status6, strerror(-status6));
+
 	return (status4 < 0 ? status4 : status6);
 }