diff mbox series

[57/90] connection: Add 'DBG' else clauses to 'connection_delgateway'.

Message ID 20231206235056.322578-61-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
From: Grant Erickson <erick205@umn.edu>

This adds 'DBG' else clauses to 'connection_delgateway' to aid in
debugging cases that otherwise "skip out" of 'connection_delgateway'.
---
 src/connection.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/src/connection.c b/src/connection.c
index 771f9eaccc28..68c919049f20 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -2421,7 +2421,8 @@  static void connection_delgateway(int index, const char *gateway)
 
 		gateway_config_type_set(config,
 			CONNMAN_GATEWAY_CONFIG_TYPE_NONE);
-	}
+	} else
+		DBG("no matching gateway config");
 
 	/*
 	 * Due to the newly-removed gateway route, there may have been a
@@ -2434,7 +2435,8 @@  static void connection_delgateway(int index, const char *gateway)
 		GATEWAY_DATA_DBG("data", data);
 
 		PROMOTE_DEFAULT_GATEWAY(data, CONNMAN_IPCONFIG_TYPE_ALL);
-	}
+	} else
+		DBG("no default gateway data");
 }
 
 static struct connman_rtnl connection_rtnl = {