aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/net/bluetooth
diff options
context:
space:
mode:
authorDaniels Umanovskis <du@axentia.se>2020-04-09 13:18:29 +0200
committerMarcel Holtmann <marcel@holtmann.org>2020-04-09 19:57:28 +0200
commit943d5d92c5e87aa8293aae6de2b3ee977aa7d3cf (patch)
tree3fd0ba80c03e0802cbc6b06d20d1e099be86c340 /net/bluetooth
parentBluetooth: Always request for user confirmation for Just Works (LE SC) (diff)
downloadwireguard-linux-943d5d92c5e87aa8293aae6de2b3ee977aa7d3cf.tar.xz
wireguard-linux-943d5d92c5e87aa8293aae6de2b3ee977aa7d3cf.zip
Bluetooth: log advertisement packet length if it gets corrected
The error could indicate a problem with the Bluetooth device. It is easier to investigate if the packet's actual length gets logged, not just the fact that a discrepancy occurred. Signed-off-by: Daniels Umanovskis <du@axentia.se> Reviewed-by: Alain Michaud <alainm@chromium.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/hci_event.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 51e6461f0b71..966fc543c01d 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -5396,7 +5396,8 @@ static void process_adv_report(struct hci_dev *hdev, u8 type, bdaddr_t *bdaddr,
/* Adjust for actual length */
if (len != real_len) {
- bt_dev_err_ratelimited(hdev, "advertising data len corrected");
+ bt_dev_err_ratelimited(hdev, "advertising data len corrected %u -> %u",
+ len, real_len);
len = real_len;
}