Bluetooth: host: Include RPAs in enhanced conn complete logging
Include the RPA addresses in the enhanced connection complete debug log. This makes it easier to debug privacy failures. Use a new debug statement so that the debug print will work correctly when log_strdup does not copy the string. Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
parent
578f2a582f
commit
3230a85590
1 changed files with 4 additions and 2 deletions
|
@ -1997,8 +1997,10 @@ static void enh_conn_complete(struct bt_hci_evt_le_enh_conn_complete *evt)
|
||||||
bt_addr_le_t peer_addr, id_addr;
|
bt_addr_le_t peer_addr, id_addr;
|
||||||
struct bt_conn *conn;
|
struct bt_conn *conn;
|
||||||
|
|
||||||
BT_DBG("status 0x%02x handle %u role %u %s", evt->status, handle,
|
BT_DBG("status 0x%02x handle %u role %u peer %s peer RPA %s",
|
||||||
evt->role, bt_addr_le_str(&evt->peer_addr));
|
evt->status, handle, evt->role, bt_addr_le_str(&evt->peer_addr),
|
||||||
|
bt_addr_str(&evt->peer_rpa));
|
||||||
|
BT_DBG("local RPA %s", bt_addr_str(&evt->local_rpa));
|
||||||
|
|
||||||
#if defined(CONFIG_BT_SMP)
|
#if defined(CONFIG_BT_SMP)
|
||||||
pending_id_keys_update();
|
pending_id_keys_update();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue