mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
fix(ble/bluedroid): add context to GATTC reg-notify cache warning
Include client_if, handle, bd_addr, and server cache state in the
warning logged when notification registration skips handle validation.
(cherry picked from commit 1085a32be8)
Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
This commit is contained in:
@@ -951,7 +951,10 @@ tBTA_GATT_STATUS BTA_GATTC_RegisterForNotifications (tBTA_GATTC_IF client_if,
|
||||
return BTA_GATT_ILLEGAL_PARAMETER;
|
||||
}
|
||||
} else {
|
||||
APPL_TRACE_WARNING("reg notif: cache not ready, skip check");
|
||||
APPL_TRACE_WARNING("reg notif: cache not ready, skip check, client_if=%d handle=0x%04x bd_addr:%02x:%02x:%02x:%02x:%02x:%02x state=%d",
|
||||
client_if, handle,
|
||||
bda[0], bda[1], bda[2], bda[3], bda[4], bda[5],
|
||||
p_srcb ? p_srcb->state : 0xff);
|
||||
}
|
||||
|
||||
if ((p_clreg = bta_gattc_cl_get_regcb(client_if)) != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user