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.
This commit is contained in:
zhanghaipeng
2026-06-22 12:14:13 +08:00
parent 6c53838e66
commit 1085a32be8
@@ -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) {