summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/l2cap_core.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-11-13 14:37:50 +0200
committerMarcel Holtmann <marcel@holtmann.org>2014-11-15 01:53:27 +0100
commit49d1174130df596fcfec3b6a56dce8aa5b997f2d (patch)
tree2a7e2a11f948e14d25fe9041e4b1f2482630daf4 /net/bluetooth/l2cap_core.c
parentd88b5bbf1a985c338967f3c41351b32b747a55fe (diff)
downloadlinux-49d1174130df596fcfec3b6a56dce8aa5b997f2d.tar.gz
linux-49d1174130df596fcfec3b6a56dce8aa5b997f2d.tar.bz2
linux-49d1174130df596fcfec3b6a56dce8aa5b997f2d.zip
Bluetooth: Add debug logs to help track locking issues
This patch adds some extra debug logs to L2CAP related code. These are mainly to help track locking issues but will probably be useful for debugging other types of issues as well. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/l2cap_core.c')
-rw-r--r--net/bluetooth/l2cap_core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index 15784d32108d..8e1273173020 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -570,7 +570,8 @@ void l2cap_chan_del(struct l2cap_chan *chan, int err)
__clear_chan_timer(chan);
- BT_DBG("chan %p, conn %p, err %d", chan, conn, err);
+ BT_DBG("chan %p, conn %p, err %d, state %s", chan, conn, err,
+ state_to_string(chan->state));
chan->ops->teardown(chan, err);