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:
parent
392a753ac2
commit
336d706f52
1 changed files with 2 additions and 1 deletions
|
@ -4047,7 +4047,8 @@ void bt_data_parse(struct net_buf_simple *ad,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (len > ad->len) {
|
if (len > ad->len) {
|
||||||
LOG_WRN("malformed advertising data");
|
LOG_WRN("malformed advertising data %u / %u",
|
||||||
|
len, ad->len);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue