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:
Ivan Grokhotkov 2018-01-31 14:01:07 +08:00
parent a5f9563ef7
commit b3be1b5190
2 changed files with 4 additions and 4 deletions

View File

@ -184,10 +184,10 @@ typedef struct tcpip_adapter_dns_param_s {
msg.data = (void*)(_data);\ msg.data = (void*)(_data);\
msg.api_fn = (_fn);\ msg.api_fn = (_fn);\
if (TCPIP_ADAPTER_IPC_REMOTE == tcpip_adapter_ipc_check(&msg)) {\ 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;\ return msg.ret;\
} else {\ } 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) }while(0)

View File

@ -67,7 +67,7 @@ static sys_sem_t api_sync_sem = NULL;
static bool tcpip_inited = false; static bool tcpip_inited = false;
static sys_sem_t api_lock_sem = NULL; static sys_sem_t api_lock_sem = NULL;
extern sys_thread_t g_lwip_task; 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) 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); 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); sys_sem_signal(&api_sync_sem);
return; return;