From ab9f70d86788fcd9e38edb5c84a88e1db99177be Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Mon, 6 Jun 2016 05:49:06 +0200 Subject: [PATCH] Bluetooth: Add debug with currently set random address This makes debugging easier when HCI monitor is not used. Change-Id: I0f4480266fd745163f2fd789bedc3bf8f2a3ceb4 Signed-off-by: Szymon Janc --- net/bluetooth/hci_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 3512fa4db4d..7c2bd4af4ac 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -389,6 +389,8 @@ static int set_random_address(const bt_addr_t *addr) struct net_buf *buf; int err; + BT_DBG("%s", bt_addr_str(addr)); + /* Do nothing if we already have the right address */ if (!bt_addr_cmp(addr, &bt_dev.random_addr.a)) { return 0;