Bluetooth: Dump the content of unhandled events as hex
This should be particularly useful with the recently added controller assert functionality that causes vendor events with debug information. Change-Id: Ied0df2ff414e08c11a73cca0afba4dc04b0b8625 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
f7d313b154
commit
1c40b964a0
1 changed files with 4 additions and 2 deletions
|
@ -2615,7 +2615,8 @@ static void hci_le_meta_event(struct net_buf *buf)
|
||||||
le_adv_report(buf);
|
le_adv_report(buf);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
BT_DBG("Unhandled LE event 0x%02x", evt->subevent);
|
BT_WARN("Unhandled LE event 0x%02x len %u: %s",
|
||||||
|
evt->subevent, buf->len, bt_hex(buf->data, buf->len));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2705,7 +2706,8 @@ static void hci_event(struct net_buf *buf)
|
||||||
hci_le_meta_event(buf);
|
hci_le_meta_event(buf);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
BT_WARN("Unhandled event 0x%02x", hdr->evt);
|
BT_WARN("Unhandled event 0x%02x len %u: %s", hdr->evt,
|
||||||
|
buf->len, bt_hex(buf->data, buf->len));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue