summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-02-04 14:58:01 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-02-04 14:58:01 +0000
commitd3c106037f3e790ea243919b1294c41f2cb54dc7 (patch)
tree6f5b4aa26d54af9ee2fcf0d1dc5b63a1a62492a6
parent1564ca8e5ec57255a19ddee42882fa8782394110 (diff)
downloadrtems-d3c106037f3e790ea243919b1294c41f2cb54dc7.tar.bz2
Added debug printf()'s that are commented out. Uncommenting these
allows one to trace the enqueueing and dequeueing of messages. This can be used to insure that packets are getting to the boundary between the network stack and the device driver.
-rw-r--r--c/src/exec/libnetworking/net/if.h3
-rw-r--r--c/src/lib/libnetworking/net/if.h3
-rw-r--r--c/src/libnetworking/net/if.h3
-rw-r--r--cpukit/libnetworking/net/if.h3
4 files changed, 12 insertions, 0 deletions
diff --git a/c/src/exec/libnetworking/net/if.h b/c/src/exec/libnetworking/net/if.h
index 16785d7626..39b6cc0d39 100644
--- a/c/src/exec/libnetworking/net/if.h
+++ b/c/src/exec/libnetworking/net/if.h
@@ -240,6 +240,7 @@ typedef void if_init_f_t __P((void *));
#define IF_QFULL(ifq) ((ifq)->ifq_len >= (ifq)->ifq_maxlen)
#define IF_DROP(ifq) ((ifq)->ifq_drops++)
#define IF_ENQUEUE(ifq, m) { \
+/* printf(" IF_ENQUEUE: %p %p\n", ifq, m ); */ \
(m)->m_nextpkt = 0; \
if ((ifq)->ifq_tail == 0) \
(ifq)->ifq_head = m; \
@@ -249,6 +250,7 @@ typedef void if_init_f_t __P((void *));
(ifq)->ifq_len++; \
}
#define IF_PREPEND(ifq, m) { \
+/* printf(" IF_PREPEND: %p %p\n", ifq, m ); */ \
(m)->m_nextpkt = (ifq)->ifq_head; \
if ((ifq)->ifq_tail == 0) \
(ifq)->ifq_tail = (m); \
@@ -258,6 +260,7 @@ typedef void if_init_f_t __P((void *));
#define IF_DEQUEUE(ifq, m) { \
(m) = (ifq)->ifq_head; \
if (m) { \
+/* printf(" IF_DEQUEUE: %p %p\n", ifq, m ); */ \
if (((ifq)->ifq_head = (m)->m_nextpkt) == 0) \
(ifq)->ifq_tail = 0; \
(m)->m_nextpkt = 0; \
diff --git a/c/src/lib/libnetworking/net/if.h b/c/src/lib/libnetworking/net/if.h
index 16785d7626..39b6cc0d39 100644
--- a/c/src/lib/libnetworking/net/if.h
+++ b/c/src/lib/libnetworking/net/if.h
@@ -240,6 +240,7 @@ typedef void if_init_f_t __P((void *));
#define IF_QFULL(ifq) ((ifq)->ifq_len >= (ifq)->ifq_maxlen)
#define IF_DROP(ifq) ((ifq)->ifq_drops++)
#define IF_ENQUEUE(ifq, m) { \
+/* printf(" IF_ENQUEUE: %p %p\n", ifq, m ); */ \
(m)->m_nextpkt = 0; \
if ((ifq)->ifq_tail == 0) \
(ifq)->ifq_head = m; \
@@ -249,6 +250,7 @@ typedef void if_init_f_t __P((void *));
(ifq)->ifq_len++; \
}
#define IF_PREPEND(ifq, m) { \
+/* printf(" IF_PREPEND: %p %p\n", ifq, m ); */ \
(m)->m_nextpkt = (ifq)->ifq_head; \
if ((ifq)->ifq_tail == 0) \
(ifq)->ifq_tail = (m); \
@@ -258,6 +260,7 @@ typedef void if_init_f_t __P((void *));
#define IF_DEQUEUE(ifq, m) { \
(m) = (ifq)->ifq_head; \
if (m) { \
+/* printf(" IF_DEQUEUE: %p %p\n", ifq, m ); */ \
if (((ifq)->ifq_head = (m)->m_nextpkt) == 0) \
(ifq)->ifq_tail = 0; \
(m)->m_nextpkt = 0; \
diff --git a/c/src/libnetworking/net/if.h b/c/src/libnetworking/net/if.h
index 16785d7626..39b6cc0d39 100644
--- a/c/src/libnetworking/net/if.h
+++ b/c/src/libnetworking/net/if.h
@@ -240,6 +240,7 @@ typedef void if_init_f_t __P((void *));
#define IF_QFULL(ifq) ((ifq)->ifq_len >= (ifq)->ifq_maxlen)
#define IF_DROP(ifq) ((ifq)->ifq_drops++)
#define IF_ENQUEUE(ifq, m) { \
+/* printf(" IF_ENQUEUE: %p %p\n", ifq, m ); */ \
(m)->m_nextpkt = 0; \
if ((ifq)->ifq_tail == 0) \
(ifq)->ifq_head = m; \
@@ -249,6 +250,7 @@ typedef void if_init_f_t __P((void *));
(ifq)->ifq_len++; \
}
#define IF_PREPEND(ifq, m) { \
+/* printf(" IF_PREPEND: %p %p\n", ifq, m ); */ \
(m)->m_nextpkt = (ifq)->ifq_head; \
if ((ifq)->ifq_tail == 0) \
(ifq)->ifq_tail = (m); \
@@ -258,6 +260,7 @@ typedef void if_init_f_t __P((void *));
#define IF_DEQUEUE(ifq, m) { \
(m) = (ifq)->ifq_head; \
if (m) { \
+/* printf(" IF_DEQUEUE: %p %p\n", ifq, m ); */ \
if (((ifq)->ifq_head = (m)->m_nextpkt) == 0) \
(ifq)->ifq_tail = 0; \
(m)->m_nextpkt = 0; \
diff --git a/cpukit/libnetworking/net/if.h b/cpukit/libnetworking/net/if.h
index 16785d7626..39b6cc0d39 100644
--- a/cpukit/libnetworking/net/if.h
+++ b/cpukit/libnetworking/net/if.h
@@ -240,6 +240,7 @@ typedef void if_init_f_t __P((void *));
#define IF_QFULL(ifq) ((ifq)->ifq_len >= (ifq)->ifq_maxlen)
#define IF_DROP(ifq) ((ifq)->ifq_drops++)
#define IF_ENQUEUE(ifq, m) { \
+/* printf(" IF_ENQUEUE: %p %p\n", ifq, m ); */ \
(m)->m_nextpkt = 0; \
if ((ifq)->ifq_tail == 0) \
(ifq)->ifq_head = m; \
@@ -249,6 +250,7 @@ typedef void if_init_f_t __P((void *));
(ifq)->ifq_len++; \
}
#define IF_PREPEND(ifq, m) { \
+/* printf(" IF_PREPEND: %p %p\n", ifq, m ); */ \
(m)->m_nextpkt = (ifq)->ifq_head; \
if ((ifq)->ifq_tail == 0) \
(ifq)->ifq_tail = (m); \
@@ -258,6 +260,7 @@ typedef void if_init_f_t __P((void *));
#define IF_DEQUEUE(ifq, m) { \
(m) = (ifq)->ifq_head; \
if (m) { \
+/* printf(" IF_DEQUEUE: %p %p\n", ifq, m ); */ \
if (((ifq)->ifq_head = (m)->m_nextpkt) == 0) \
(ifq)->ifq_tail = 0; \
(m)->m_nextpkt = 0; \