Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab19516a authored by Syam Sidhardhan's avatar Syam Sidhardhan Committed by Gustavo Padovan
Browse files

Bluetooth: debug: Correct the PSM printing



Earlier we were printing chan->psm before assigning any value.

Signed-off-by: default avatarSyam Sidhardhan <s.syam@samsung.com>
Acked-by: default avatarAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: default avatarGustavo Padovan <gustavo.padovan@collabora.co.uk>
parent f0d6a0ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)