From: Gustavo F. Padovan Date: Wed, 23 Mar 2011 17:38:32 +0000 (-0300) Subject: Bluetooth: Improve error message on wrong link type X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2c6d1a2eec5c49793c6760546d05515ce1b76881;p=linux-beck.git Bluetooth: Improve error message on wrong link type Signed-off-by: Gustavo F. Padovan --- diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index c9f9cecca527..b5a1ce06e1c0 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -2670,7 +2670,8 @@ static inline void l2cap_sig_channel(struct l2cap_conn *conn, if (err) { struct l2cap_cmd_rej rej; - BT_DBG("error %d", err); + + BT_ERR("Wrong link type (%d)", err); /* FIXME: Map err to a valid reason */ rej.reason = cpu_to_le16(0);