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 <ext.szymon.janc@tieto.com>
This commit is contained in:
parent
61c2353fc0
commit
ab9f70d867
1 changed files with 2 additions and 0 deletions
|
@ -389,6 +389,8 @@ static int set_random_address(const bt_addr_t *addr)
|
||||||
struct net_buf *buf;
|
struct net_buf *buf;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
|
BT_DBG("%s", bt_addr_str(addr));
|
||||||
|
|
||||||
/* Do nothing if we already have the right address */
|
/* Do nothing if we already have the right address */
|
||||||
if (!bt_addr_cmp(addr, &bt_dev.random_addr.a)) {
|
if (!bt_addr_cmp(addr, &bt_dev.random_addr.a)) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue