diff options
author | Luiz Augusto von Dentz | 2017-04-03 17:48:56 +0300 |
---|---|---|
committer | Marcel Holtmann | 2017-04-12 22:02:40 +0200 |
commit | da75fdc6bdccaf99220757cd1ac33cec72cfebb1 (patch) | |
tree | 5c79392c9a4d44be17ba174e7c2d3785321b6bf2 /net/bluetooth | |
parent | 27ce68a37b0bd86123571e1e76b9bdb362d109e0 (diff) |
Bluetooth: 6lowpan: Print errors during recv_pkt
This makes should make it more clear why a packet is being dropped.
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Acked-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/6lowpan.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c index 2063e96bc006..5b91e85cf1c6 100644 --- a/net/bluetooth/6lowpan.c +++ b/net/bluetooth/6lowpan.c @@ -337,6 +337,7 @@ static int recv_pkt(struct sk_buff *skb, struct net_device *dev, ret = iphc_decompress(local_skb, dev, peer); if (ret < 0) { + BT_DBG("iphc_decompress failed: %d", ret); kfree_skb(local_skb); goto drop; } @@ -356,6 +357,7 @@ static int recv_pkt(struct sk_buff *skb, struct net_device *dev, consume_skb(local_skb); consume_skb(skb); } else { + BT_DBG("unknown packet type"); goto drop; } |