mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 18:14:53 +00:00
Output snd_buf size in debug message in tcp_enqueue().
This commit is contained in:
parent
d04f7aa4bc
commit
c786f238ef
@ -103,9 +103,9 @@ tcp_enqueue(struct tcp_pcb *pcb, void *arg, u16_t len,
|
||||
|
||||
left = len;
|
||||
ptr = arg;
|
||||
|
||||
/* fail on too much data */
|
||||
if(len > pcb->snd_buf) {
|
||||
DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_enqueue: too much data %d\n", len));
|
||||
DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_enqueue: too much data (len=%d > snd_buf=%d)\n", len, pcb->snd_buf));
|
||||
return ERR_MEM;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user