From 2da63b12418ba5455ed0bc23a500b9b768b12109 Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Wed, 24 Aug 2011 17:02:00 +0300 Subject: [PATCH] service: Change the debug print location to be more useful --- src/service.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/service.c b/src/service.c index 1fbd12e..62ad20a 100644 --- a/src/service.c +++ b/src/service.c @@ -3990,9 +3990,6 @@ static int service_indicate_state(struct connman_service *service) old_state = service->state; new_state = combine_state(service->state_ipv4, service->state_ipv6); - if (old_state == new_state) - return -EALREADY; - DBG("service %p old %s - new %s/%s => %s", service, state2string(old_state), @@ -4000,6 +3997,9 @@ static int service_indicate_state(struct connman_service *service) state2string(service->state_ipv6), state2string(new_state)); + if (old_state == new_state) + return -EALREADY; + service->state = new_state; state_changed(service); -- 2.7.4