Skip to content

Commit

Permalink
Bluetooth: debug: Correct the PSM printing
Browse files Browse the repository at this point in the history
Earlier we were printing chan->psm before assigning any value.

Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
Acked-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
  • Loading branch information
Syam Sidhardhan authored and Gustavo Padovan committed Aug 21, 2012
1 parent f0d6a0e commit ab19516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1446,7 +1446,7 @@ int l2cap_chan_connect(struct l2cap_chan *chan, __le16 psm, u16 cid,
int err;

BT_DBG("%s -> %s (type %u) psm 0x%2.2x", batostr(src), batostr(dst),
dst_type, __le16_to_cpu(chan->psm));
dst_type, __le16_to_cpu(psm));

hdev = hci_get_route(dst, src);
if (!hdev)
Expand Down

0 comments on commit ab19516

Please sign in to comment.