fix(nimble): Improve logging for nv_attr allocation for gatt caching

This commit is contained in:
Astha Verma
2026-07-24 16:35:54 +05:30
committed by Rahul Tank
parent 6330413d85
commit 655895824d
+1 -1
View File
@@ -637,7 +637,7 @@ ble_gattc_cache_save(struct ble_gattc_cache_conn *peer, size_t num_attr)
nv_attr = (struct ble_gatt_nv_attr *) nimble_platform_mem_calloc(1,num_attr * sizeof(ble_gatt_nv_attr));
if (nv_attr == NULL) {
BLE_HS_LOG(DEBUG, "Failed to allocate memory to nv_attr");
BLE_HS_LOG(ERROR, "Failed to allocate memory to nv_attr");
return;
}
memset(nv_attr, 0, num_attr * sizeof(ble_gatt_nv_attr));