提交 a0dfe0ab 编写于 作者: A Andrei Emeltchenko 提交者: Gustavo Padovan

Bluetooth: debug: Print amp_mgr refcnt

Improve debug output.
Signed-off-by: NAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
上级 4b10b274
...@@ -501,7 +501,7 @@ static struct l2cap_chan *a2mp_chan_open(struct l2cap_conn *conn) ...@@ -501,7 +501,7 @@ static struct l2cap_chan *a2mp_chan_open(struct l2cap_conn *conn)
/* AMP Manager functions */ /* AMP Manager functions */
void amp_mgr_get(struct amp_mgr *mgr) 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); kref_get(&mgr->kref);
} }
...@@ -517,7 +517,7 @@ static void amp_mgr_destroy(struct kref *kref) ...@@ -517,7 +517,7 @@ static void amp_mgr_destroy(struct kref *kref)
int amp_mgr_put(struct amp_mgr *mgr) 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); return kref_put(&mgr->kref, &amp_mgr_destroy);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册