From: Andrei Emeltchenko Date: Tue, 20 Nov 2012 15:16:21 +0000 (+0200) Subject: Bluetooth: Improve error message printing X-Git-Tag: next-20121205~78^2~57^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1bb166e66cc46323d3757ce1027cc1c767498d50;p=karo-tx-linux.git Bluetooth: Improve error message printing Instead of printing: "[ 7763.082007] Bluetooth: 2" print something like: "[ 7763.082007] Bluetooth: Trailing bytes: 2 in sframe" Signed-off-by: Andrei Emeltchenko Signed-off-by: Gustavo Padovan --- diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 7114bdff5958..f44c5429b4f0 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -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; }