[PATCH 2/2] service: Add debug messages to see the network index

patrik.flykt at linux.intel.com patrik.flykt at linux.intel.com
Wed Nov 21 06:25:12 PST 2012


From: Patrik Flykt <patrik.flykt at linux.intel.com>

---
 src/service.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/service.c b/src/service.c
index ac0704f..4fcdbb6 100644
--- a/src/service.c
+++ b/src/service.c
@@ -926,6 +926,9 @@ static void update_nameservers(struct connman_service *service)
 	int index;
 
 	index = __connman_service_get_index(service);
+
+	DBG("interface index %d", index);
+
 	if (index < 0)
 		return;
 
@@ -934,13 +937,16 @@ static void update_nameservers(struct connman_service *service)
 	case CONNMAN_SERVICE_STATE_IDLE:
 	case CONNMAN_SERVICE_STATE_ASSOCIATION:
 	case CONNMAN_SERVICE_STATE_CONFIGURATION:
+		DBG("wrong state");
 		return;
 	case CONNMAN_SERVICE_STATE_FAILURE:
 	case CONNMAN_SERVICE_STATE_DISCONNECT:
+		DBG("removing all nameservers");
 		connman_resolver_remove_all(index);
 		return;
 	case CONNMAN_SERVICE_STATE_READY:
 	case CONNMAN_SERVICE_STATE_ONLINE:
+		DBG("adding new nameservers");
 		break;
 	}
 
-- 
1.7.10.4




More information about the connman mailing list