From: Daniels Umanovskis Date: Thu, 9 Apr 2020 11:18:29 +0000 (+0200) Subject: Bluetooth: log advertisement packet length if it gets corrected X-Git-Tag: v5.15~3723^2~503^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=943d5d92c5e87aa8293aae6de2b3ee977aa7d3cf;p=platform%2Fkernel%2Flinux-starfive.git 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 Reviewed-by: Alain Michaud Signed-off-by: Marcel Holtmann --- diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 51e6461..966fc54 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; }