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 <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2022-12-14 22:05:30 +01:00 committed by Carles Cufí
commit 336d706f52

View file

@ -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;
}