From: Jukka Rissanen Date: Wed, 24 Aug 2011 14:02:00 +0000 (+0300) Subject: service: Change the debug print location to be more useful X-Git-Tag: accepted/2.0alpha-wayland/20121110.002834~1171 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2da63b12418ba5455ed0bc23a500b9b768b12109;p=profile%2Fivi%2Fconnman.git service: Change the debug print location to be more useful --- 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);