mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
tcpip_adapter: make log output at debug level less noisy
At debug log level, tcpip_adapter would print logs for each function call scheduled onto the tcpip task. These logs contained pointers which idf_monitor decoded, adding even more noise and useless vertical space in logs. This change moves these log statements to verbose level.
This commit is contained in:
parent
a5f9563ef7
commit
b3be1b5190
@ -184,10 +184,10 @@ typedef struct tcpip_adapter_dns_param_s {
|
||||
msg.data = (void*)(_data);\
|
||||
msg.api_fn = (_fn);\
|
||||
if (TCPIP_ADAPTER_IPC_REMOTE == tcpip_adapter_ipc_check(&msg)) {\
|
||||
ESP_LOGD(TAG, "check: remote, if=%d fn=%p\n", (_if), (_fn));\
|
||||
ESP_LOGV(TAG, "check: remote, if=%d fn=%p\n", (_if), (_fn));\
|
||||
return msg.ret;\
|
||||
} else {\
|
||||
ESP_LOGD(TAG, "check: local, if=%d fn=%p\n", (_if), (_fn));\
|
||||
ESP_LOGV(TAG, "check: local, if=%d fn=%p\n", (_if), (_fn));\
|
||||
}\
|
||||
}while(0)
|
||||
|
||||
|
@ -67,7 +67,7 @@ static sys_sem_t api_sync_sem = NULL;
|
||||
static bool tcpip_inited = false;
|
||||
static sys_sem_t api_lock_sem = NULL;
|
||||
extern sys_thread_t g_lwip_task;
|
||||
#define TAG "tcpip_adapter"
|
||||
static const char* TAG = "tcpip_adapter";
|
||||
|
||||
static void tcpip_adapter_api_cb(void* api_msg)
|
||||
{
|
||||
@ -79,7 +79,7 @@ static void tcpip_adapter_api_cb(void* api_msg)
|
||||
}
|
||||
|
||||
msg->ret = msg->api_fn(msg);
|
||||
ESP_LOGD(TAG, "call api in lwip: ret=0x%x, give sem", msg->ret);
|
||||
ESP_LOGV(TAG, "call api in lwip: ret=0x%x, give sem", msg->ret);
|
||||
sys_sem_signal(&api_sync_sem);
|
||||
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user