From: Pekka Pessi Date: Mon, 30 Aug 2010 15:21:10 +0000 (+0300) Subject: service: debug log ref and unref X-Git-Tag: 2.0_alpha~2451 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d148b34ed293d35a67b7a04a1f37128770c83f60;p=framework%2Fconnectivity%2Fconnman.git service: debug log ref and unref --- diff --git a/src/service.c b/src/service.c index 6bc43d2..119e4cd 100644 --- a/src/service.c +++ b/src/service.c @@ -2298,6 +2298,8 @@ struct connman_location *__connman_service_get_location(struct connman_service * */ struct connman_service *connman_service_ref(struct connman_service *service) { + DBG("%p", service); + g_atomic_int_inc(&service->refcount); return service; @@ -3108,7 +3110,7 @@ static struct connman_service *service_get(const char *identifier) if (iter != NULL) { service = g_sequence_get(iter); if (service != NULL) - g_atomic_int_inc(&service->refcount); + connman_service_ref(service); return service; }