Skip to content

Commit 5d96b9e

Browse files
jori-nordicfabiobaltieri
authored andcommitted
Bluetooth: smp: reword pairing failed error
This makes it more user-friendly, in case no failed cb has been registered so this error is printed out of context. Signed-off-by: Jonathan Rico <[email protected]>
1 parent 5cc0e8c commit 5d96b9e

File tree

1 file changed

+2
-2
lines changed
  • subsys/bluetooth/host

1 file changed

+2
-2
lines changed

subsys/bluetooth/host/smp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,7 +1464,7 @@ static uint8_t smp_br_pairing_failed(struct bt_smp_br *smp, struct net_buf *buf)
14641464
{
14651465
struct bt_smp_pairing_fail *req = (void *)buf->data;
14661466

1467-
BT_ERR("reason 0x%x", req->reason);
1467+
BT_ERR("pairing failed (peer reason 0x%x)", req->reason);
14681468

14691469
smp_pairing_br_complete(smp, req->reason);
14701470
smp_br_reset(smp);
@@ -3891,7 +3891,7 @@ static uint8_t smp_pairing_failed(struct bt_smp *smp, struct net_buf *buf)
38913891
const struct bt_conn_auth_cb *smp_auth_cb = latch_auth_cb(smp);
38923892
struct bt_smp_pairing_fail *req = (void *)buf->data;
38933893

3894-
BT_ERR("reason 0x%x", req->reason);
3894+
BT_ERR("pairing failed (peer reason 0x%x)", req->reason);
38953895

38963896
if (atomic_test_and_clear_bit(smp->flags, SMP_FLAG_USER) ||
38973897
atomic_test_and_clear_bit(smp->flags, SMP_FLAG_DISPLAY)) {

0 commit comments

Comments
 (0)