Bluetooth: Print events opcodes as hex

This makes logs easier to read as those are defined as hex values.

Change-Id: I67f1dc0da9056a69398faf55fd5535a67ec4ebb9
Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
This commit is contained in:
Szymon Janc 2016-06-30 13:34:10 +02:00 committed by Johan Hedberg
commit 19ff3d3e37

View file

@ -2495,7 +2495,7 @@ static void hci_le_meta_event(struct net_buf *buf)
le_adv_report(buf);
break;
default:
BT_DBG("Unhandled LE event %x", evt->subevent);
BT_DBG("Unhandled LE event 0x%02x", evt->subevent);
break;
}
}
@ -2504,7 +2504,7 @@ static void hci_event(struct net_buf *buf)
{
struct bt_hci_evt_hdr *hdr = (void *)buf->data;
BT_DBG("event %u", hdr->evt);
BT_DBG("event 0x%02x", hdr->evt);
net_buf_pull(buf, sizeof(*hdr));