Skip to content

Commit 788d1a9

Browse files
olivier-le-sagecarlescufi
authored andcommitted
bluetooth: host: improve log for unhandled vs events
Aligns the logging unhandled vs events with the regular ones. Now it prints out the code and length. Signed-off-by: Olivier Lesage <[email protected]>
1 parent 277504c commit 788d1a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

subsys/bluetooth/host/hci_core.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ static void handle_vs_event(uint8_t event, struct net_buf *buf,
222222

223223
err = handle_event_common(event, buf, handlers, num_handlers);
224224
if (err == -EOPNOTSUPP) {
225-
LOG_WRN("Unhandled vendor-specific event: %s", bt_hex(buf->data, buf->len));
225+
LOG_WRN("Unhandled vendor-specific event 0x%02x len %u: %s", event, buf->len,
226+
bt_hex(buf->data, buf->len));
226227
}
227228

228229
/* Other possible errors are handled by handle_event_common function */

0 commit comments

Comments
 (0)