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:
Zhang Hai Peng
2026-06-26 20:16:14 +08:00
parent feb1da9239
commit 95c5099ed9

View File

@@ -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) {