diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2012-07-10 08:27:51 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-07-10 14:42:07 -0400 |
commit | 89d8b4078921023c52551b641b647352751ae714 (patch) | |
tree | 316e1a4e140c41b68a1b04757d135e89e4fd78ad /net/bluetooth | |
parent | ad0ac6ca5ffc959b7f8af2c76da4bf2f120aa0ee (diff) |
Bluetooth: debug: Add debug to l2cap_security_cfm
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/l2cap_core.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index c2d6981bb97f..9fd05993f5b4 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c | |||
@@ -5379,7 +5379,7 @@ int l2cap_security_cfm(struct hci_conn *hcon, u8 status, u8 encrypt) | |||
5379 | if (!conn) | 5379 | if (!conn) |
5380 | return 0; | 5380 | return 0; |
5381 | 5381 | ||
5382 | BT_DBG("conn %p", conn); | 5382 | BT_DBG("conn %p status 0x%2.2x encrypt %u", conn, status, encrypt); |
5383 | 5383 | ||
5384 | if (hcon->type == LE_LINK) { | 5384 | if (hcon->type == LE_LINK) { |
5385 | if (!status && encrypt) | 5385 | if (!status && encrypt) |
@@ -5392,7 +5392,8 @@ int l2cap_security_cfm(struct hci_conn *hcon, u8 status, u8 encrypt) | |||
5392 | list_for_each_entry(chan, &conn->chan_l, list) { | 5392 | list_for_each_entry(chan, &conn->chan_l, list) { |
5393 | l2cap_chan_lock(chan); | 5393 | l2cap_chan_lock(chan); |
5394 | 5394 | ||
5395 | BT_DBG("chan->scid %d", chan->scid); | 5395 | BT_DBG("chan %p scid 0x%4.4x state %s", chan, chan->scid, |
5396 | state_to_string(chan->state)); | ||
5396 | 5397 | ||
5397 | if (chan->scid == L2CAP_CID_LE_DATA) { | 5398 | if (chan->scid == L2CAP_CID_LE_DATA) { |
5398 | if (!status && encrypt) { | 5399 | if (!status && encrypt) { |