From 794fb12e75b91e9cc938acf834ad2abd57c31190 Mon Sep 17 00:00:00 2001 From: Abhinav Kudnar Date: Mon, 3 Jun 2024 18:10:31 +0530 Subject: [PATCH] fix(nimble): Added return code in ble_gap_unpair error logs --- nimble/host/src/ble_gap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nimble/host/src/ble_gap.c b/nimble/host/src/ble_gap.c index bb75e1504..1f406500c 100644 --- a/nimble/host/src/ble_gap.c +++ b/nimble/host/src/ble_gap.c @@ -6995,7 +6995,7 @@ ble_gap_unpair(const ble_addr_t *peer_addr) irk_rc = ble_hs_pvcy_remove_entry(key.sec.peer_addr.type, key.sec.peer_addr.val); if (irk_rc != 0) { - BLE_HS_LOG(ERROR, "Error while removing IRK\n"); + BLE_HS_LOG(ERROR, "Error while removing IRK , rc = %x\n",irk_rc); } } @@ -7003,7 +7003,7 @@ ble_gap_unpair(const ble_addr_t *peer_addr) // Delete the Peer record from store as LTK is present ltk_rc = ble_store_util_delete_peer(&key.sec.peer_addr); if (ltk_rc != 0) { - BLE_HS_LOG(ERROR, "Error while removing LTK\n"); + BLE_HS_LOG(ERROR, "Error while removing LTK , rc = %x\n",ltk_rc); } } } @@ -7013,7 +7013,7 @@ ble_gap_unpair(const ble_addr_t *peer_addr) ble_store_util_delete_peer(&key.sec.peer_addr); } else { - BLE_HS_LOG(ERROR,"No record found for the given address in ble store"); + BLE_HS_LOG(ERROR,"No record found for the given address in ble store , rc = %x\n",rc); return rc; }