projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de4a233
)
provider: Add ref counting debug
author
Jukka Rissanen
<jukka.rissanen@linux.intel.com>
Wed, 24 Aug 2011 14:02:03 +0000
(17:02 +0300)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Mon, 12 Sep 2011 09:40:46 +0000
(11:40 +0200)
src/provider.c
patch
|
blob
|
history
diff --git
a/src/provider.c
b/src/provider.c
index
633ca40
..
bbd462e
100644
(file)
--- a/
src/provider.c
+++ b/
src/provider.c
@@
-143,7
+143,7
@@
static void provider_unregister(struct connman_provider *provider)
struct connman_provider *connman_provider_ref(struct connman_provider *provider)
{
- DBG("provider %p
", provider
);
+ DBG("provider %p
refcount %d", provider, provider->refcount + 1
);
g_atomic_int_inc(&provider->refcount);
@@
-165,7
+165,7
@@
static void provider_destruct(struct connman_provider *provider)
void connman_provider_unref(struct connman_provider *provider)
{
- DBG("provider %p
", provider
);
+ DBG("provider %p
refcount %d", provider, provider->refcount - 1
);
if (g_atomic_int_dec_and_test(&provider->refcount) == FALSE)
return;