]> granicus.if.org Git - esp-idf/commitdiff
Do not printf if debug level is not correct
authorme-no-dev <hristo@espressif.com>
Wed, 18 Jan 2017 14:13:09 +0000 (16:13 +0200)
committerme-no-dev <hristo@espressif.com>
Wed, 18 Jan 2017 14:13:09 +0000 (16:13 +0200)
components/lwip/api/tcpip.c

index f3422af706b5afa81c958c004e737fb8a8b3dcb8..8374c429cd161ce86469650ee7a49f9664e2aee6 100755 (executable)
@@ -501,8 +501,8 @@ tcpip_init(tcpip_init_done_fn initfunc, void *arg)
   sys_thread_t xLwipTaskHandle = sys_thread_new(TCPIP_THREAD_NAME
                 , tcpip_thread, NULL, TCPIP_THREAD_STACKSIZE, TCPIP_THREAD_PRIO);
 
-  printf("tcpip_task_hdlxxx : %x, prio:%d,stack:%d\n",
-                (u32_t)xLwipTaskHandle,TCPIP_THREAD_PRIO,TCPIP_THREAD_STACKSIZE);
+  LWIP_DEBUGF(TCPIP_DEBUG, ("tcpip_task_hdlxxx : %x, prio:%d,stack:%d\n",
+                (u32_t)xLwipTaskHandle,TCPIP_THREAD_PRIO,TCPIP_THREAD_STACKSIZE));
 
 }