fix(nimble): Added return code in ble_gap_unpair error logs

This commit is contained in:
Abhinav Kudnar
2024-06-03 18:10:31 +05:30
committed by Rahul Tank
parent d53c988a93
commit 794fb12e75
+3 -3
View File
@@ -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;
}