mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-29 00:33:31 +00:00
fix(nimble): Improve logging for nv_attr allocation for gatt caching
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user