summaryrefslogtreecommitdiffstats
path: root/c/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-02-04 15:00:14 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-02-04 15:00:14 +0000
commit354b00bc1ec9f99e2ea629090a372b4d0cc04b2f (patch)
tree3d6b11369448cb37d5fb7d80644ab80d582ec6c3 /c/src
parentModifed to reflect transition from device driver to file system. (diff)
downloadrtems-354b00bc1ec9f99e2ea629090a372b4d0cc04b2f.tar.bz2
Added printf()'s that can be uncommented to trace MBUF operations. This
is very useful when debugging a device driver.
Diffstat (limited to 'c/src')
-rw-r--r--c/src/exec/libnetworking/sys/mbuf.h3
-rw-r--r--c/src/lib/libnetworking/sys/mbuf.h3
-rw-r--r--c/src/libnetworking/sys/mbuf.h3
3 files changed, 9 insertions, 0 deletions
diff --git a/c/src/exec/libnetworking/sys/mbuf.h b/c/src/exec/libnetworking/sys/mbuf.h
index 0c2299c5a6..6afe2541d5 100644
--- a/c/src/exec/libnetworking/sys/mbuf.h
+++ b/c/src/exec/libnetworking/sys/mbuf.h
@@ -192,6 +192,7 @@ union mcluster {
(void)m_mballoc(1, (_how)); \
if (((_m) = mmbfree) != 0) { \
mmbfree = (_m)->m_next; \
+/* printf( "MGET: %p\n", (_m) ); */ \
mbstat.m_mtypes[MT_FREE]--; \
(_m)->m_type = (_type); \
mbstat.m_mtypes[_type]++; \
@@ -212,6 +213,7 @@ union mcluster {
(void)m_mballoc(1, (_how)); \
if (((_m) = mmbfree) != 0) { \
mmbfree = (_m)->m_next; \
+/* printf( "MGETHDR: %p\n", (_m) ); */ \
mbstat.m_mtypes[MT_FREE]--; \
(_m)->m_type = (_type); \
mbstat.m_mtypes[_type]++; \
@@ -272,6 +274,7 @@ union mcluster {
*/
#define MFREE(_m, _n) \
MBUFLOCK( \
+/* printf( "MFREE: %p\n", (_m) ); */ \
mbstat.m_mtypes[(_m)->m_type]--; \
if ((_m)->m_flags & M_EXT) { \
if ((_m)->m_ext.ext_free) \
diff --git a/c/src/lib/libnetworking/sys/mbuf.h b/c/src/lib/libnetworking/sys/mbuf.h
index 0c2299c5a6..6afe2541d5 100644
--- a/c/src/lib/libnetworking/sys/mbuf.h
+++ b/c/src/lib/libnetworking/sys/mbuf.h
@@ -192,6 +192,7 @@ union mcluster {
(void)m_mballoc(1, (_how)); \
if (((_m) = mmbfree) != 0) { \
mmbfree = (_m)->m_next; \
+/* printf( "MGET: %p\n", (_m) ); */ \
mbstat.m_mtypes[MT_FREE]--; \
(_m)->m_type = (_type); \
mbstat.m_mtypes[_type]++; \
@@ -212,6 +213,7 @@ union mcluster {
(void)m_mballoc(1, (_how)); \
if (((_m) = mmbfree) != 0) { \
mmbfree = (_m)->m_next; \
+/* printf( "MGETHDR: %p\n", (_m) ); */ \
mbstat.m_mtypes[MT_FREE]--; \
(_m)->m_type = (_type); \
mbstat.m_mtypes[_type]++; \
@@ -272,6 +274,7 @@ union mcluster {
*/
#define MFREE(_m, _n) \
MBUFLOCK( \
+/* printf( "MFREE: %p\n", (_m) ); */ \
mbstat.m_mtypes[(_m)->m_type]--; \
if ((_m)->m_flags & M_EXT) { \
if ((_m)->m_ext.ext_free) \
diff --git a/c/src/libnetworking/sys/mbuf.h b/c/src/libnetworking/sys/mbuf.h
index 0c2299c5a6..6afe2541d5 100644
--- a/c/src/libnetworking/sys/mbuf.h
+++ b/c/src/libnetworking/sys/mbuf.h
@@ -192,6 +192,7 @@ union mcluster {
(void)m_mballoc(1, (_how)); \
if (((_m) = mmbfree) != 0) { \
mmbfree = (_m)->m_next; \
+/* printf( "MGET: %p\n", (_m) ); */ \
mbstat.m_mtypes[MT_FREE]--; \
(_m)->m_type = (_type); \
mbstat.m_mtypes[_type]++; \
@@ -212,6 +213,7 @@ union mcluster {
(void)m_mballoc(1, (_how)); \
if (((_m) = mmbfree) != 0) { \
mmbfree = (_m)->m_next; \
+/* printf( "MGETHDR: %p\n", (_m) ); */ \
mbstat.m_mtypes[MT_FREE]--; \
(_m)->m_type = (_type); \
mbstat.m_mtypes[_type]++; \
@@ -272,6 +274,7 @@ union mcluster {
*/
#define MFREE(_m, _n) \
MBUFLOCK( \
+/* printf( "MFREE: %p\n", (_m) ); */ \
mbstat.m_mtypes[(_m)->m_type]--; \
if ((_m)->m_flags & M_EXT) { \
if ((_m)->m_ext.ext_free) \