Changeset 354b00bc in rtems


Ignore:
Timestamp:
Feb 4, 1999, 3:00:14 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
7397638
Parents:
83c7b00
Message:

Added printf()'s that can be uncommented to trace MBUF operations. This
is very useful when debugging a device driver.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/libnetworking/sys/mbuf.h

    r83c7b00 r354b00bc  
    193193          if (((_m) = mmbfree) != 0) { \
    194194                mmbfree = (_m)->m_next; \
     195/* printf( "MGET: %p\n", (_m) ); */ \
    195196                mbstat.m_mtypes[MT_FREE]--; \
    196197                (_m)->m_type = (_type); \
     
    213214          if (((_m) = mmbfree) != 0) { \
    214215                mmbfree = (_m)->m_next; \
     216/* printf( "MGETHDR: %p\n", (_m) ); */ \
    215217                mbstat.m_mtypes[MT_FREE]--; \
    216218                (_m)->m_type = (_type); \
     
    273275#define MFREE(_m, _n) \
    274276        MBUFLOCK(  \
     277/* printf( "MFREE: %p\n", (_m) ); */ \
    275278          mbstat.m_mtypes[(_m)->m_type]--; \
    276279          if ((_m)->m_flags & M_EXT) { \
  • c/src/lib/libnetworking/sys/mbuf.h

    r83c7b00 r354b00bc  
    193193          if (((_m) = mmbfree) != 0) { \
    194194                mmbfree = (_m)->m_next; \
     195/* printf( "MGET: %p\n", (_m) ); */ \
    195196                mbstat.m_mtypes[MT_FREE]--; \
    196197                (_m)->m_type = (_type); \
     
    213214          if (((_m) = mmbfree) != 0) { \
    214215                mmbfree = (_m)->m_next; \
     216/* printf( "MGETHDR: %p\n", (_m) ); */ \
    215217                mbstat.m_mtypes[MT_FREE]--; \
    216218                (_m)->m_type = (_type); \
     
    273275#define MFREE(_m, _n) \
    274276        MBUFLOCK(  \
     277/* printf( "MFREE: %p\n", (_m) ); */ \
    275278          mbstat.m_mtypes[(_m)->m_type]--; \
    276279          if ((_m)->m_flags & M_EXT) { \
  • c/src/libnetworking/sys/mbuf.h

    r83c7b00 r354b00bc  
    193193          if (((_m) = mmbfree) != 0) { \
    194194                mmbfree = (_m)->m_next; \
     195/* printf( "MGET: %p\n", (_m) ); */ \
    195196                mbstat.m_mtypes[MT_FREE]--; \
    196197                (_m)->m_type = (_type); \
     
    213214          if (((_m) = mmbfree) != 0) { \
    214215                mmbfree = (_m)->m_next; \
     216/* printf( "MGETHDR: %p\n", (_m) ); */ \
    215217                mbstat.m_mtypes[MT_FREE]--; \
    216218                (_m)->m_type = (_type); \
     
    273275#define MFREE(_m, _n) \
    274276        MBUFLOCK(  \
     277/* printf( "MFREE: %p\n", (_m) ); */ \
    275278          mbstat.m_mtypes[(_m)->m_type]--; \
    276279          if ((_m)->m_flags & M_EXT) { \
  • cpukit/libnetworking/sys/mbuf.h

    r83c7b00 r354b00bc  
    193193          if (((_m) = mmbfree) != 0) { \
    194194                mmbfree = (_m)->m_next; \
     195/* printf( "MGET: %p\n", (_m) ); */ \
    195196                mbstat.m_mtypes[MT_FREE]--; \
    196197                (_m)->m_type = (_type); \
     
    213214          if (((_m) = mmbfree) != 0) { \
    214215                mmbfree = (_m)->m_next; \
     216/* printf( "MGETHDR: %p\n", (_m) ); */ \
    215217                mbstat.m_mtypes[MT_FREE]--; \
    216218                (_m)->m_type = (_type); \
     
    273275#define MFREE(_m, _n) \
    274276        MBUFLOCK(  \
     277/* printf( "MFREE: %p\n", (_m) ); */ \
    275278          mbstat.m_mtypes[(_m)->m_type]--; \
    276279          if ((_m)->m_flags & M_EXT) { \
Note: See TracChangeset for help on using the changeset viewer.