Skip to content

Commit c32210b

Browse files
Thalleynashif
authored andcommitted
Bluetooth: Host: ID: Log resolve list conflicts
In case of conflicts when calling bt_id_find_conflict there was no way to easily determine what conflicted. This is a rare occurance, but has happened when testing against PTS. Signed-off-by: Emil Gydesen <[email protected]>
1 parent 1993ea0 commit c32210b

File tree

1 file changed

+5
-0
lines changed
  • subsys/bluetooth/host

1 file changed

+5
-0
lines changed

subsys/bluetooth/host/id.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,11 @@ void find_rl_conflict(struct bt_keys *resident, void *user_data)
974974
bt_irk_eq(&conflict->candidate->irk, &resident->irk));
975975

976976
if (addr_conflict || irk_conflict) {
977+
LOG_DBG("Resident : addr %s and IRK %s", bt_addr_le_str(&resident->addr),
978+
bt_hex(resident->irk.val, sizeof(resident->irk.val)));
979+
LOG_DBG("Candidate: addr %s and IRK %s", bt_addr_le_str(&conflict->candidate->addr),
980+
bt_hex(conflict->candidate->irk.val, sizeof(conflict->candidate->irk.val)));
981+
977982
conflict->found = resident;
978983
}
979984
}

0 commit comments

Comments
 (0)