net: tcp: Print information when proper ACK is received

It is useful to know that we received ACK when debugging the
TCP code.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2020-03-10 11:24:42 +02:00
commit aee31bb7c1

View file

@ -1204,6 +1204,9 @@ bool net_tcp_ack_received(struct net_context *ctx, u32_t ack)
}
}
NET_DBG("[%p] Received ACK pkt %p (len %zd bytes)", ctx->tcp,
pkt, net_pkt_get_len(pkt));
sys_slist_remove(list, NULL, head);
/* If we receive a valid ACK, then we need to undo the ref