diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2012-07-11 07:43:35 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-07-11 09:09:37 -0400 |
commit | a0dfe0ab6bf194805ce9d6a2dc81efab7a4a7fda (patch) | |
tree | 18de5362495dd53246cd4978ab3451ac0b5afbad /net/bluetooth/a2mp.c | |
parent | 4b10b274e22ca6df1cda2fccf3870b8586feec15 (diff) |
Bluetooth: debug: Print amp_mgr refcnt
Improve debug output.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth/a2mp.c')
-rw-r--r-- | net/bluetooth/a2mp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/a2mp.c b/net/bluetooth/a2mp.c index fb93250b3938..4ff0bf3ba9a5 100644 --- a/net/bluetooth/a2mp.c +++ b/net/bluetooth/a2mp.c | |||
@@ -501,7 +501,7 @@ static struct l2cap_chan *a2mp_chan_open(struct l2cap_conn *conn) | |||
501 | /* AMP Manager functions */ | 501 | /* AMP Manager functions */ |
502 | void amp_mgr_get(struct amp_mgr *mgr) | 502 | void amp_mgr_get(struct amp_mgr *mgr) |
503 | { | 503 | { |
504 | BT_DBG("mgr %p", mgr); | 504 | BT_DBG("mgr %p orig refcnt %d", mgr, atomic_read(&mgr->kref.refcount)); |
505 | 505 | ||
506 | kref_get(&mgr->kref); | 506 | kref_get(&mgr->kref); |
507 | } | 507 | } |
@@ -517,7 +517,7 @@ static void amp_mgr_destroy(struct kref *kref) | |||
517 | 517 | ||
518 | int amp_mgr_put(struct amp_mgr *mgr) | 518 | int amp_mgr_put(struct amp_mgr *mgr) |
519 | { | 519 | { |
520 | BT_DBG("mgr %p", mgr); | 520 | BT_DBG("mgr %p orig refcnt %d", mgr, atomic_read(&mgr->kref.refcount)); |
521 | 521 | ||
522 | return kref_put(&mgr->kref, &_mgr_destroy); | 522 | return kref_put(&mgr->kref, &_mgr_destroy); |
523 | } | 523 | } |