diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-06-22 18:53:18 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-06-22 18:53:18 -0600 |
commit | 6b6026feba4b5ce279197f18872927cdc56ce5a1 (patch) | |
tree | 51aaadf3337ff25f8b8c6d5405341d7b64ec1513 /nuttx/net/iob/iob_free.c | |
parent | b38ddf0dd017cf9b9a837048ba1622269d402c33 (diff) | |
download | nuttx-6b6026feba4b5ce279197f18872927cdc56ce5a1.tar.gz nuttx-6b6026feba4b5ce279197f18872927cdc56ce5a1.tar.bz2 nuttx-6b6026feba4b5ce279197f18872927cdc56ce5a1.zip |
TCP write buffering: Extend and fix some buffer dumping logic
Diffstat (limited to 'nuttx/net/iob/iob_free.c')
-rw-r--r-- | nuttx/net/iob/iob_free.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nuttx/net/iob/iob_free.c b/nuttx/net/iob/iob_free.c index 511c6438f..68c7fb264 100644 --- a/nuttx/net/iob/iob_free.c +++ b/nuttx/net/iob/iob_free.c @@ -48,6 +48,7 @@ #include <semaphore.h> #include <assert.h> +#include <debug.h> #include <nuttx/arch.h> #include <nuttx/net/iob.h> @@ -88,6 +89,9 @@ FAR struct iob_s *iob_free(FAR struct iob_s *iob) FAR struct iob_s *next = iob->io_flink; irqstate_t flags; + nllvdbg("iob=%p io_pktlen=%u io_len=%u next=%p\n", + iob, iob->io_pktlen, iob->io_len, next); + /* Copy the data that only exists in the head of a I/O buffer chain into * the next entry. */ @@ -114,6 +118,9 @@ FAR struct iob_s *iob_free(FAR struct iob_s *iob) next->io_pktlen = 0; DEBUGASSERT(next->io_len == 0 && next->io_flink == NULL); } + + nllvdbg("next=%p io_pktlen=%u io_len=%u\n", + next, next->io_pktlen, next->io_len); } /* Free the I/O buffer by adding it to the head of the free list. We don't |