mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
component/bt: remove some error logs which are not error
This commit is contained in:
parent
17e8d49f26
commit
569b9d592e
@ -546,7 +546,7 @@ static void bta_av_proc_stream_evt(UINT8 handle, BD_ADDR bd_addr, UINT8 event, t
|
||||
if (p_data) {
|
||||
bta_av_conn_cback(handle, bd_addr, event, p_data);
|
||||
} else {
|
||||
APPL_TRACE_ERROR("%s: p_data is null", __func__);
|
||||
APPL_TRACE_EVENT("%s: p_data is null", __func__);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -474,7 +474,7 @@ void bta_av_rc_opened(tBTA_AV_CB *p_cb, tBTA_AV_DATA *p_data)
|
||||
p_scb->rc_handle = p_data->rc_conn_chg.handle;
|
||||
APPL_TRACE_DEBUG("bta_av_rc_opened shdl:%d, srch %d", i + 1, p_scb->rc_handle);
|
||||
shdl = i + 1;
|
||||
LOG_INFO("%s allow incoming AVRCP connections:%d", __func__, p_scb->use_rc);
|
||||
APPL_TRACE_EVENT("%s allow incoming AVRCP connections:%d", __func__, p_scb->use_rc);
|
||||
bta_sys_stop_timer(&p_scb->timer);
|
||||
disc = p_scb->hndl;
|
||||
break;
|
||||
@ -506,7 +506,7 @@ void bta_av_rc_opened(tBTA_AV_CB *p_cb, tBTA_AV_DATA *p_data)
|
||||
|
||||
p_cb->rcb[i].shdl = shdl;
|
||||
rc_open.rc_handle = i;
|
||||
APPL_TRACE_ERROR("bta_av_rc_opened rcb[%d] shdl:%d lidx:%d/%d",
|
||||
APPL_TRACE_EVENT("bta_av_rc_opened rcb[%d] shdl:%d lidx:%d/%d",
|
||||
i, shdl, p_cb->rcb[i].lidx, p_cb->lcb[BTA_AV_NUM_LINKS].lidx);
|
||||
p_cb->rcb[i].status |= BTA_AV_RC_CONN_MASK;
|
||||
|
||||
|
@ -3118,7 +3118,7 @@ static BOOLEAN bta_dm_check_av(UINT16 event)
|
||||
}
|
||||
#endif
|
||||
|
||||
APPL_TRACE_WARNING("bta_dm_check_av:%d", bta_dm_cb.cur_av_count);
|
||||
APPL_TRACE_EVENT("bta_dm_check_av:%d", bta_dm_cb.cur_av_count);
|
||||
if (bta_dm_cb.cur_av_count) {
|
||||
for (i = 0; i < bta_dm_cb.device_list.count; i++) {
|
||||
p_dev = &bta_dm_cb.device_list.peer_device[i];
|
||||
@ -3442,7 +3442,7 @@ static void bta_dm_rm_cback(tBTA_SYS_CONN_STATUS status, UINT8 id, UINT8 app_id,
|
||||
#endif ///BTM_SSR_INCLUDED == TRUE
|
||||
}
|
||||
}
|
||||
APPL_TRACE_WARNING("bta_dm_rm_cback:%d, status:%d", bta_dm_cb.cur_av_count, status);
|
||||
APPL_TRACE_EVENT("bta_dm_rm_cback:%d, status:%d", bta_dm_cb.cur_av_count, status);
|
||||
}
|
||||
|
||||
/* Don't adjust roles for each busy/idle state transition to avoid
|
||||
|
@ -1493,7 +1493,7 @@ static void btc_a2dp_source_feeding_state_reset(void)
|
||||
btc_aa_src_cb.media_feeding.cfg.pcm.num_channel *
|
||||
BTC_MEDIA_TIME_TICK_MS) / 1000;
|
||||
|
||||
APPL_TRACE_WARNING("pcm bytes per tick %d",
|
||||
APPL_TRACE_EVENT("pcm bytes per tick %d",
|
||||
(int)btc_aa_src_cb.media_feeding_state.pcm.bytes_per_tick);
|
||||
}
|
||||
}
|
||||
|
@ -579,23 +579,23 @@ static void btc_search_callback(tBTA_DM_SEARCH_EVT event, tBTA_DM_SEARCH *p_data
|
||||
}
|
||||
case BTA_DM_INQ_CMPL_EVT: {
|
||||
param.scan_rst.num_resps = p_data->inq_cmpl.num_resps;
|
||||
LOG_ERROR("%s BLE observe complete. Num Resp %d\n", __FUNCTION__, p_data->inq_cmpl.num_resps);
|
||||
LOG_DEBUG("%s BLE observe complete. Num Resp %d\n", __FUNCTION__, p_data->inq_cmpl.num_resps);
|
||||
break;
|
||||
}
|
||||
case BTA_DM_DISC_RES_EVT:
|
||||
LOG_ERROR("BTA_DM_DISC_RES_EVT\n");
|
||||
LOG_DEBUG("BTA_DM_DISC_RES_EVT\n");
|
||||
break;
|
||||
case BTA_DM_DISC_BLE_RES_EVT:
|
||||
LOG_ERROR("BTA_DM_DISC_BLE_RES_EVT\n");
|
||||
LOG_DEBUG("BTA_DM_DISC_BLE_RES_EVT\n");
|
||||
break;
|
||||
case BTA_DM_DISC_CMPL_EVT:
|
||||
LOG_ERROR("BTA_DM_DISC_CMPL_EVT\n");
|
||||
LOG_DEBUG("BTA_DM_DISC_CMPL_EVT\n");
|
||||
break;
|
||||
case BTA_DM_DI_DISC_CMPL_EVT:
|
||||
LOG_ERROR("BTA_DM_DI_DISC_CMPL_EVT\n");
|
||||
LOG_DEBUG("BTA_DM_DI_DISC_CMPL_EVT\n");
|
||||
break;
|
||||
case BTA_DM_SEARCH_CANCEL_CMPL_EVT:
|
||||
LOG_ERROR("BTA_DM_SEARCH_CANCEL_CMPL_EVT\n");
|
||||
LOG_DEBUG("BTA_DM_SEARCH_CANCEL_CMPL_EVT\n");
|
||||
break;
|
||||
default:
|
||||
LOG_ERROR("%s : Unknown event 0x%x\n", __FUNCTION__, event);
|
||||
|
@ -671,7 +671,6 @@ void btc_gattc_call_handler(btc_msg_t *msg)
|
||||
btc_ble_gattc_args_t *arg = (btc_ble_gattc_args_t *)(msg->arg);
|
||||
switch (msg->act) {
|
||||
case BTC_GATTC_ACT_APP_REGISTER:
|
||||
LOG_ERROR("%s()", __func__);
|
||||
btc_gattc_app_register(arg);
|
||||
break;
|
||||
case BTC_GATTC_ACT_APP_UNREGISTER:
|
||||
|
@ -377,16 +377,16 @@ void avct_lcb_bind_conn(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data)
|
||||
*******************************************************************************/
|
||||
void avct_lcb_chk_disc(tAVCT_LCB *p_lcb, tAVCT_LCB_EVT *p_data)
|
||||
{
|
||||
AVCT_TRACE_WARNING("avct_lcb_chk_disc");
|
||||
AVCT_TRACE_EVENT("avct_lcb_chk_disc");
|
||||
#if (AVCT_BROWSE_INCLUDED == TRUE)
|
||||
avct_close_bcb(p_lcb, p_data);
|
||||
#endif
|
||||
if (avct_lcb_last_ccb(p_lcb, p_data->p_ccb)) {
|
||||
AVCT_TRACE_WARNING("closing");
|
||||
AVCT_TRACE_EVENT("closing");
|
||||
p_data->p_ccb->ch_close = TRUE;
|
||||
avct_lcb_event(p_lcb, AVCT_LCB_INT_CLOSE_EVT, p_data);
|
||||
} else {
|
||||
AVCT_TRACE_WARNING("dealloc ccb");
|
||||
AVCT_TRACE_EVENT("dealloc ccb");
|
||||
avct_lcb_unbind_disc(p_lcb, p_data);
|
||||
}
|
||||
}
|
||||
|
@ -2598,7 +2598,6 @@ tBTM_STATUS btm_sec_mx_access_request (BD_ADDR bd_addr, UINT16 psm, BOOLEAN is_o
|
||||
void btm_sec_conn_req (UINT8 *bda, UINT8 *dc)
|
||||
{
|
||||
tBTM_SEC_DEV_REC *p_dev_rec = btm_find_dev (bda);
|
||||
BTM_TRACE_ERROR ("%s\n", __func__);
|
||||
/* Some device may request a connection before we are done with the HCI_Reset sequence */
|
||||
if (!controller_get_interface()->get_is_ready()) {
|
||||
BTM_TRACE_ERROR ("Security Manager: connect request when device not ready\n");
|
||||
@ -4209,7 +4208,6 @@ void btm_sec_connected (UINT8 *bda, UINT16 handle, UINT8 status, UINT8 enc_mode)
|
||||
|
||||
btm_acl_resubmit_page();
|
||||
|
||||
BTM_TRACE_ERROR ("%s\n", __func__);
|
||||
/* Commenting out trace due to obf/compilation problems.
|
||||
*/
|
||||
#if (BT_USE_TRACES == TRUE && SMP_INCLUDED == TRUE)
|
||||
|
@ -656,7 +656,7 @@ static void process_service_search_attr_rsp (tCONN_CB *p_ccb, UINT8 *p_reply)
|
||||
/*******************************************************************/
|
||||
|
||||
#if (SDP_RAW_DATA_INCLUDED == TRUE)
|
||||
SDP_TRACE_WARNING("process_service_search_attr_rsp\n");
|
||||
SDP_TRACE_DEBUG("process_service_search_attr_rsp\n");
|
||||
sdp_copy_raw_data (p_ccb, TRUE);
|
||||
#endif
|
||||
|
||||
|
@ -320,7 +320,7 @@ static void a2d_app_heart_beat(void *arg)
|
||||
|
||||
static void bt_app_av_sm_hdlr(uint16_t event, void *param)
|
||||
{
|
||||
ESP_LOGE(BT_AV_TAG, "%s state %d, evt 0x%x", __func__, m_a2d_state, event);
|
||||
ESP_LOGI(BT_AV_TAG, "%s state %d, evt 0x%x", __func__, m_a2d_state, event);
|
||||
switch (m_a2d_state) {
|
||||
case APP_AV_STATE_DISCOVERING:
|
||||
case APP_AV_STATE_DISCOVERED:
|
||||
|
@ -307,7 +307,7 @@ static void gattc_profile_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_
|
||||
|
||||
switch (event) {
|
||||
case ESP_GATTC_REG_EVT:
|
||||
ESP_LOGE(GATTC_TAG, "REG EVT, set scan params");
|
||||
ESP_LOGI(GATTC_TAG, "REG EVT, set scan params");
|
||||
esp_ble_gap_set_scan_params(&ble_scan_params);
|
||||
break;
|
||||
case ESP_GATTC_CONNECT_EVT:
|
||||
|
@ -461,7 +461,7 @@ static void spp_task_init(void)
|
||||
|
||||
static void gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param)
|
||||
{
|
||||
ESP_LOGE(GATTS_TABLE_TAG, "GAP_EVT, event %d\n", event);
|
||||
ESP_LOGI(GATTS_TABLE_TAG, "GAP_EVT, event %d\n", event);
|
||||
|
||||
switch (event) {
|
||||
case ESP_GAP_BLE_ADV_DATA_RAW_SET_COMPLETE_EVT:
|
||||
@ -483,7 +483,7 @@ static void gatts_profile_event_handler(esp_gatts_cb_event_t event, esp_gatt_if_
|
||||
esp_ble_gatts_cb_param_t *p_data = (esp_ble_gatts_cb_param_t *) param;
|
||||
uint8_t res = 0xff;
|
||||
|
||||
ESP_LOGE(GATTS_TABLE_TAG, "event = %x\n",event);
|
||||
ESP_LOGI(GATTS_TABLE_TAG, "event = %x\n",event);
|
||||
switch (event) {
|
||||
case ESP_GATTS_REG_EVT:
|
||||
ESP_LOGI(GATTS_TABLE_TAG, "%s %d\n", __func__, __LINE__);
|
||||
|
@ -361,7 +361,7 @@ static void esp_gap_cb(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *par
|
||||
break;
|
||||
case ESP_GAP_BLE_PASSKEY_NOTIF_EVT: ///the app will receive this evt when the IO has Output capability and the peer device IO has Input capability.
|
||||
///show the passkey number to the user to input it in the peer deivce.
|
||||
ESP_LOGE(GATTC_TAG, "The passkey Notify number:%d", param->ble_security.key_notif.passkey);
|
||||
ESP_LOGI(GATTC_TAG, "The passkey Notify number:%d", param->ble_security.key_notif.passkey);
|
||||
break;
|
||||
case ESP_GAP_BLE_KEY_EVT:
|
||||
//shows the ble key info share with peer device to the user.
|
||||
|
@ -304,7 +304,7 @@ static void gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param
|
||||
break;
|
||||
case ESP_GAP_BLE_PASSKEY_NOTIF_EVT: ///the app will receive this evt when the IO has Output capability and the peer device IO has Input capability.
|
||||
///show the passkey number to the user to input it in the peer deivce.
|
||||
ESP_LOGE(GATTS_TABLE_TAG, "The passkey Notify number:%d", param->ble_security.key_notif.passkey);
|
||||
ESP_LOGI(GATTS_TABLE_TAG, "The passkey Notify number:%d", param->ble_security.key_notif.passkey);
|
||||
break;
|
||||
case ESP_GAP_BLE_KEY_EVT:
|
||||
//shows the ble key info share with peer device to the user.
|
||||
|
@ -760,7 +760,7 @@ static void esp_gap_cb(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *par
|
||||
case ESP_GAP_BLE_SCAN_START_COMPLETE_EVT:
|
||||
//scan start complete event to indicate scan start successfully or failed
|
||||
if (param->scan_start_cmpl.status == ESP_BT_STATUS_SUCCESS) {
|
||||
ESP_LOGE(GATTC_TAG, "Scan start success");
|
||||
ESP_LOGI(GATTC_TAG, "Scan start success");
|
||||
}else{
|
||||
ESP_LOGE(GATTC_TAG, "Scan start failed");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user