change(bt/bluedroid): Added line information printing when error occurs CHECK_HF_IDX

This commit is contained in:
Jin Cheng
2023-09-11 14:47:37 +08:00
parent 9be4decab7
commit a62b41064b

View File

@ -112,12 +112,12 @@ do {
hf_local_param[idx].btc_hf_cb.num_active = 0; \
hf_local_param[idx].btc_hf_cb.num_held = 0;
#define CHECK_HF_IDX(idx) \
do { \
if ((idx < 0) || (idx >= BTC_HF_NUM_CB)) { \
BTC_TRACE_ERROR("%s: Invalid index %d", __FUNCTION__, idx); \
return; \
} \
#define CHECK_HF_IDX(idx) \
do { \
if ((idx < 0) || (idx >= BTC_HF_NUM_CB)) { \
BTC_TRACE_ERROR("%s:%d Invalid index %d", __FUNCTION__, __LINE__, idx); \
return; \
} \
} while (0)
/************************************************************************************