Skip to content

Commit

Permalink
Bluetooth: debug: Print amp_mgr refcnt
Browse files Browse the repository at this point in the history
Improve debug output.

Signed-off-by: Andrei Emeltchenko <[email protected]>
Signed-off-by: Gustavo Padovan <[email protected]>
  • Loading branch information
finikorg authored and Gustavo Padovan committed Jul 11, 2012
1 parent 4b10b27 commit a0dfe0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/bluetooth/a2mp.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ static struct l2cap_chan *a2mp_chan_open(struct l2cap_conn *conn)
/* AMP Manager functions */
void amp_mgr_get(struct amp_mgr *mgr)
{
BT_DBG("mgr %p", mgr);
BT_DBG("mgr %p orig refcnt %d", mgr, atomic_read(&mgr->kref.refcount));

kref_get(&mgr->kref);
}
Expand All @@ -517,7 +517,7 @@ static void amp_mgr_destroy(struct kref *kref)

int amp_mgr_put(struct amp_mgr *mgr)
{
BT_DBG("mgr %p", mgr);
BT_DBG("mgr %p orig refcnt %d", mgr, atomic_read(&mgr->kref.refcount));

return kref_put(&mgr->kref, &amp_mgr_destroy);
}
Expand Down

0 comments on commit a0dfe0a

Please sign in to comment.