From: Andrei Emeltchenko Date: Tue, 20 Nov 2012 15:16:21 +0000 (+0200) Subject: Bluetooth: Improve error message printing X-Git-Tag: v3.8-rc1~139^2~174^2^2~21^2~2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=1bb166e66cc46323d3757ce1027cc1c767498d50;p=~emulex%2Finfiniband.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 7114bdff595..f44c5429b4f 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; }