Commit 788d1a90 authored by Olivier Lesage's avatar Olivier Lesage Committed by Carles Cufi
Browse files

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: default avatarOlivier Lesage <olivier.lesage@nordicsemi.no>
parent 277504cf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -222,7 +222,8 @@ static void handle_vs_event(uint8_t event, struct net_buf *buf,

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

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