aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorSyam Sidhardhan <s.syam@samsung.com>2012-07-27 14:21:22 -0400
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>2012-08-21 13:54:41 -0400
commitab19516a50b375c11b9fa442954a43454a730950 (patch)
treeab27710b52f9ab7ad699262978bc419598fe7f2b /net
parentf0d6a0ea330617454032d6e2ed48759858a44427 (diff)
Bluetooth: debug: Correct the PSM printing
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>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/l2cap_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index 9f8b29ef5b68..dae895e3ca75 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -1446,7 +1446,7 @@ int l2cap_chan_connect(struct l2cap_chan *chan, __le16 psm, u16 cid,
1446 int err; 1446 int err;
1447 1447
1448 BT_DBG("%s -> %s (type %u) psm 0x%2.2x", batostr(src), batostr(dst), 1448 BT_DBG("%s -> %s (type %u) psm 0x%2.2x", batostr(src), batostr(dst),
1449 dst_type, __le16_to_cpu(chan->psm)); 1449 dst_type, __le16_to_cpu(psm));
1450 1450
1451 hdev = hci_get_route(dst, src); 1451 hdev = hci_get_route(dst, src);
1452 if (!hdev) 1452 if (!hdev)