diff --git a/src/core/tcp.c b/src/core/tcp.c index 02587c62..0a0e8b1b 100644 --- a/src/core/tcp.c +++ b/src/core/tcp.c @@ -283,10 +283,8 @@ tcp_close_shutdown(struct tcp_pcb *pcb, u8_t rst_on_unacked_data) err_t tcp_close(struct tcp_pcb *pcb) { -#if TCP_DEBUG LWIP_DEBUGF(TCP_DEBUG, ("tcp_close: closing in ")); tcp_debug_print_state(pcb->state); -#endif /* TCP_DEBUG */ if (pcb->state != LISTEN) { /* Set a flag not to receive any more data... */ diff --git a/src/core/tcp_in.c b/src/core/tcp_in.c index 14a59b2f..6ab2ecf1 100644 --- a/src/core/tcp_in.c +++ b/src/core/tcp_in.c @@ -325,9 +325,7 @@ tcp_input(struct pbuf *p, struct netif *inp) if (pcb != NULL) { /* The incoming segment belongs to a connection. */ #if TCP_INPUT_DEBUG -#if TCP_DEBUG tcp_debug_print_state(pcb->state); -#endif /* TCP_DEBUG */ #endif /* TCP_INPUT_DEBUG */ /* Set up a tcp_seg structure. */