From 19ff3d3e37ac6a0219e54a7798d14b282fe2e18a Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Thu, 30 Jun 2016 13:34:10 +0200 Subject: [PATCH] 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 --- net/bluetooth/hci_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 997906057a0..7f655120842 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -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));