diff options
author | Pekka Pessi <Pekka.Pessi@nokia.com> | 2010-08-30 18:21:10 +0300 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-09-08 20:06:22 +0200 |
commit | d148b34ed293d35a67b7a04a1f37128770c83f60 (patch) | |
tree | 0514563d4cbbdc9727faa23bbeea7cc68e14fb83 /src/service.c | |
parent | 2611e80812a467361d9102ef42705a3d5410c8a9 (diff) | |
download | connman-d148b34ed293d35a67b7a04a1f37128770c83f60.tar.gz connman-d148b34ed293d35a67b7a04a1f37128770c83f60.tar.bz2 connman-d148b34ed293d35a67b7a04a1f37128770c83f60.zip |
service: debug log ref and unref
Diffstat (limited to 'src/service.c')
-rw-r--r-- | src/service.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c index 6bc43d20..119e4cd0 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; } |