]> granicus.if.org Git - esp-idf/commitdiff
Do not printf if debug is not enabled
authorme-no-dev <hristo@espressif.com>
Wed, 18 Jan 2017 14:06:54 +0000 (16:06 +0200)
committerme-no-dev <hristo@espressif.com>
Wed, 18 Jan 2017 14:06:54 +0000 (16:06 +0200)
components/tcpip_adapter/tcpip_adapter_lwip.c

index b2725e3447f8b49b67cb32ddb2e48d94a0540bf7..40f235d545c77402ce1220c22f785017b5724eb3 100644 (file)
@@ -85,7 +85,7 @@ esp_err_t tcpip_adapter_start(tcpip_adapter_if_t tcpip_if, uint8_t *mac, tcpip_a
         if (dhcps_status == TCPIP_ADAPTER_DHCP_INIT) {
             dhcps_start(esp_netif[tcpip_if], ip_info->ip);
 
-            printf("dhcp server start:(ip: " IPSTR ", mask: " IPSTR ", gw: " IPSTR ")\n",
+            TCPIP_ADAPTER_DEBUG("dhcp server start:(ip: " IPSTR ", mask: " IPSTR ", gw: " IPSTR ")\n",
                    IP2STR(&ip_info->ip), IP2STR(&ip_info->netmask), IP2STR(&ip_info->gw));
 
             dhcps_status = TCPIP_ADAPTER_DHCP_STARTED;