Skip to content

Commit

Permalink
Bluetooth: debug: Add debug to l2cap_security_cfm
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
  • Loading branch information
Andrei Emeltchenko authored and Gustavo Padovan committed Jul 10, 2012
1 parent ad0ac6c commit 89d8b40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -5379,7 +5379,7 @@ int l2cap_security_cfm(struct hci_conn *hcon, u8 status, u8 encrypt)
if (!conn)
return 0;

BT_DBG("conn %p", conn);
BT_DBG("conn %p status 0x%2.2x encrypt %u", conn, status, encrypt);

if (hcon->type == LE_LINK) {
if (!status && encrypt)
Expand All @@ -5392,7 +5392,8 @@ int l2cap_security_cfm(struct hci_conn *hcon, u8 status, u8 encrypt)
list_for_each_entry(chan, &conn->chan_l, list) {
l2cap_chan_lock(chan);

BT_DBG("chan->scid %d", chan->scid);
BT_DBG("chan %p scid 0x%4.4x state %s", chan, chan->scid,
state_to_string(chan->state));

if (chan->scid == L2CAP_CID_LE_DATA) {
if (!status && encrypt) {
Expand Down

0 comments on commit 89d8b40

Please sign in to comment.