Output snd_buf size in debug message in tcp_enqueue().

This commit is contained in:
likewise 2003-01-08 14:35:02 +00:00
parent d04f7aa4bc
commit c786f238ef

View File

@ -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;
}