diff options
Diffstat (limited to 'nuttx/net/iob/iob_trimhead.c')
-rw-r--r-- | nuttx/net/iob/iob_trimhead.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/net/iob/iob_trimhead.c b/nuttx/net/iob/iob_trimhead.c index 0fe349023..23d8adf8a 100644 --- a/nuttx/net/iob/iob_trimhead.c +++ b/nuttx/net/iob/iob_trimhead.c @@ -40,6 +40,7 @@ #include <nuttx/config.h> #include <assert.h> +#include <debug.h> #include <nuttx/net/iob.h> @@ -83,6 +84,8 @@ FAR struct iob_s *iob_trimhead(FAR struct iob_s *iob, unsigned int trimlen) uint16_t pktlen; unsigned int len; + nllvdbg("iob=%p pktlen=%d trimlen=%d\n", iob, iob->io_pktlen, trimlen); + if (iob && trimlen > 0) { /* Trim from the head of the I/IO buffer chain */ @@ -94,6 +97,7 @@ FAR struct iob_s *iob_trimhead(FAR struct iob_s *iob, unsigned int trimlen) { /* Do we trim this entire I/O buffer away? */ + nllvdbg("iob=%p len=%d vs %d\n", iob, iob->io_len, len); if (iob->io_len <= len) { FAR struct iob_s *next; |