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:
Johan Hedberg 2016-11-09 22:27:51 +02:00
parent f7d313b154
commit 1c40b964a0

View file

@ -2615,7 +2615,8 @@ static void hci_le_meta_event(struct net_buf *buf)
le_adv_report(buf);
break;
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;
}
}
@ -2705,7 +2706,8 @@ static void hci_event(struct net_buf *buf)
hci_le_meta_event(buf);
break;
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;
}