From 91586bc6f616579cc17c4f4235a516cdd6c9f11f Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Sat, 21 Nov 2015 14:38:23 +0800 Subject: [PATCH] Drop #if TCP_DEBUG guard around tcp_debug_print_state calls The #if TCP_DEBUG guard can be removed because tcp_debug_print_state() print nothing if !TCP_DEBUG. Signed-off-by: Axel Lin --- src/core/tcp.c | 2 -- src/core/tcp_in.c | 2 -- 2 files changed, 4 deletions(-) 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. */