From 336d706f525b80c8ba48decd9a2484e05ecb0e70 Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Wed, 14 Dec 2022 22:05:30 +0100 Subject: [PATCH] Bluetooth: Host: Add length values to malformed adv data warning Add the advertised length, and the actual length, in the log statement so it is more clear what the issue is. Signed-off-by: Emil Gydesen --- subsys/bluetooth/host/hci_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subsys/bluetooth/host/hci_core.c b/subsys/bluetooth/host/hci_core.c index 1c2fc8dccf0..028cc715b51 100644 --- a/subsys/bluetooth/host/hci_core.c +++ b/subsys/bluetooth/host/hci_core.c @@ -4047,7 +4047,8 @@ void bt_data_parse(struct net_buf_simple *ad, } if (len > ad->len) { - LOG_WRN("malformed advertising data"); + LOG_WRN("malformed advertising data %u / %u", + len, ad->len); return; }