mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-26 18:35:28 +00:00
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 <axel.lin@ingics.com>
This commit is contained in:
parent
f971fb921e
commit
91586bc6f6
@ -283,10 +283,8 @@ tcp_close_shutdown(struct tcp_pcb *pcb, u8_t rst_on_unacked_data)
|
|||||||
err_t
|
err_t
|
||||||
tcp_close(struct tcp_pcb *pcb)
|
tcp_close(struct tcp_pcb *pcb)
|
||||||
{
|
{
|
||||||
#if TCP_DEBUG
|
|
||||||
LWIP_DEBUGF(TCP_DEBUG, ("tcp_close: closing in "));
|
LWIP_DEBUGF(TCP_DEBUG, ("tcp_close: closing in "));
|
||||||
tcp_debug_print_state(pcb->state);
|
tcp_debug_print_state(pcb->state);
|
||||||
#endif /* TCP_DEBUG */
|
|
||||||
|
|
||||||
if (pcb->state != LISTEN) {
|
if (pcb->state != LISTEN) {
|
||||||
/* Set a flag not to receive any more data... */
|
/* Set a flag not to receive any more data... */
|
||||||
|
@ -325,9 +325,7 @@ tcp_input(struct pbuf *p, struct netif *inp)
|
|||||||
if (pcb != NULL) {
|
if (pcb != NULL) {
|
||||||
/* The incoming segment belongs to a connection. */
|
/* The incoming segment belongs to a connection. */
|
||||||
#if TCP_INPUT_DEBUG
|
#if TCP_INPUT_DEBUG
|
||||||
#if TCP_DEBUG
|
|
||||||
tcp_debug_print_state(pcb->state);
|
tcp_debug_print_state(pcb->state);
|
||||||
#endif /* TCP_DEBUG */
|
|
||||||
#endif /* TCP_INPUT_DEBUG */
|
#endif /* TCP_INPUT_DEBUG */
|
||||||
|
|
||||||
/* Set up a tcp_seg structure. */
|
/* Set up a tcp_seg structure. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user