summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/l2cap_core.c
diff options
context:
space:
mode:
authorGustavo F. Padovan2011-03-23 18:38:32 +0100
committerGustavo F. Padovan2011-03-31 19:22:54 +0200
commit2c6d1a2eec5c49793c6760546d05515ce1b76881 (patch)
tree16a3abad82a9df44dba0b2b710368e7f26fa7092 /net/bluetooth/l2cap_core.c
parentBluetooth: Remove unused struct item (diff)
downloadkernel-qcow2-linux-2c6d1a2eec5c49793c6760546d05515ce1b76881.tar.gz
kernel-qcow2-linux-2c6d1a2eec5c49793c6760546d05515ce1b76881.tar.xz
kernel-qcow2-linux-2c6d1a2eec5c49793c6760546d05515ce1b76881.zip
Bluetooth: Improve error message on wrong link type
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/l2cap_core.c')
-rw-r--r--net/bluetooth/l2cap_core.c3
1 files changed, 2 insertions, 1 deletions
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);