mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
change(bt/bluedroid): Added line information printing when error occurs CHECK_HF_IDX
This commit is contained in:
@ -112,12 +112,12 @@ do {
|
|||||||
hf_local_param[idx].btc_hf_cb.num_active = 0; \
|
hf_local_param[idx].btc_hf_cb.num_active = 0; \
|
||||||
hf_local_param[idx].btc_hf_cb.num_held = 0;
|
hf_local_param[idx].btc_hf_cb.num_held = 0;
|
||||||
|
|
||||||
#define CHECK_HF_IDX(idx) \
|
#define CHECK_HF_IDX(idx) \
|
||||||
do { \
|
do { \
|
||||||
if ((idx < 0) || (idx >= BTC_HF_NUM_CB)) { \
|
if ((idx < 0) || (idx >= BTC_HF_NUM_CB)) { \
|
||||||
BTC_TRACE_ERROR("%s: Invalid index %d", __FUNCTION__, idx); \
|
BTC_TRACE_ERROR("%s:%d Invalid index %d", __FUNCTION__, __LINE__, idx); \
|
||||||
return; \
|
return; \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
|
Reference in New Issue
Block a user