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~17^2~88^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1bb166e66cc46323d3757ce1027cc1c767498d50;p=platform%2Fkernel%2Flinux-stable.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 7114bdf..f44c542 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; }