diff --git a/lib/drivers/lwip/src/core/tcp.c b/lib/drivers/lwip/src/core/tcp.c index 9618c9570f8..c629bc4e8ac 100644 --- a/lib/drivers/lwip/src/core/tcp.c +++ b/lib/drivers/lwip/src/core/tcp.c @@ -325,9 +325,6 @@ tcp_abandon(struct tcp_pcb *pcb, int reset) #endif /* LWIP_CALLBACK_API */ void *errf_arg; - DbgPrint("tcp_abandon: called on pcb = 0x%x\n", pcb); - DbgPrint("tcp_abandon: pcb->state = %s\n", tcp_state_str[pcb->state]); - /* pcb->state LISTEN not allowed here */ LWIP_ASSERT("don't call tcp_abort/tcp_abandon for listen-pcbs", pcb->state != LISTEN); @@ -920,7 +917,6 @@ tcp_slowtmr(void) tcp_active_pcbs = pcb->next; } - DbgPrint("tcp_slowtmr: removing pcb 0x%x\n", pcb); TCP_EVENT_ERR(pcb->errf, pcb->callback_arg, ERR_ABRT); if (pcb_reset) { tcp_rst(pcb->snd_nxt, pcb->rcv_nxt, &pcb->local_ip, &pcb->remote_ip, @@ -1434,7 +1430,6 @@ tcp_pcb_purge(struct tcp_pcb *pcb) void tcp_pcb_remove(struct tcp_pcb **pcblist, struct tcp_pcb *pcb) { - DbgPrint("tcp_pcb_remove: Removing pcb = 0x%x\n", pcb); TCP_RMV(pcblist, pcb); tcp_pcb_purge(pcb); diff --git a/lib/drivers/lwip/src/core/tcp_in.c b/lib/drivers/lwip/src/core/tcp_in.c index 303b46f1935..92b43e19612 100644 --- a/lib/drivers/lwip/src/core/tcp_in.c +++ b/lib/drivers/lwip/src/core/tcp_in.c @@ -339,14 +339,12 @@ tcp_input(struct pbuf *p, struct netif *inp) end. We then call the error callback to inform the application that the connection is dead before we deallocate the PCB. */ - DbgPrint("tcp_input: removing pcb = 0x%x in state %s with TF_RESET\n", pcb, tcp_state_str[pcb->state]); TCP_EVENT_ERR(pcb->errf, pcb->callback_arg, ERR_RST); tcp_pcb_remove(&tcp_active_pcbs, pcb); memp_free(MEMP_TCP_PCB, pcb); } else if (recv_flags & TF_CLOSED) { /* The connection has been closed and we will deallocate the PCB. */ - DbgPrint("tcp_input: removing pcb = 0x%x with TF_CLOSED\n", pcb); tcp_pcb_remove(&tcp_active_pcbs, pcb); memp_free(MEMP_TCP_PCB, pcb); } else { @@ -438,7 +436,6 @@ aborted: pbuf_free(p); } - DbgPrint("tcp_input: done\n"); LWIP_ASSERT("tcp_input: tcp_pcbs_sane()", tcp_pcbs_sane()); PERF_STOP("tcp_input"); }