Bluetooth: Improve error message printing
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Tue, 20 Nov 2012 15:16:21 +0000 (17:16 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Tue, 20 Nov 2012 17:55:09 +0000 (15:55 -0200)
Instead of printing:
"[ 7763.082007] Bluetooth: 2"
print something like:
"[ 7763.082007] Bluetooth: Trailing bytes: 2 in sframe"

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/l2cap_core.c

index 7114bdff595896ac8ce88f617c29fbad4e66d36b..f44c5429b4f047b12a84fe945db681fcfa98ed71 100644 (file)
@@ -6091,7 +6091,7 @@ static int l2cap_data_rcv(struct l2cap_chan *chan, struct sk_buff *skb)
                       control->super);
 
                if (len != 0) {
-                       BT_ERR("%d", len);
+                       BT_ERR("Trailing bytes: %d in sframe", len);
                        l2cap_send_disconn_req(chan->conn, chan, ECONNRESET);
                        goto drop;
                }