aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ce/if_ce.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ce/if_ce.c')
-rw-r--r--sys/dev/ce/if_ce.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/dev/ce/if_ce.c b/sys/dev/ce/if_ce.c
index 899f33f38dc5..6d77a1cd6d0d 100644
--- a/sys/dev/ce/if_ce.c
+++ b/sys/dev/ce/if_ce.c
@@ -298,22 +298,6 @@ static struct cdevsw ce_cdevsw = {
#endif
/*
- * Print the mbuf chain, for debug purposes only.
- */
-static void printmbuf (struct mbuf *m)
-{
- printf ("mbuf:");
- for (; m; m=m->m_next) {
- if (m->m_flags & M_PKTHDR)
- printf (" HDR %d:", m->m_pkthdr.len);
- if (m->m_flags & M_EXT)
- printf (" EXT:");
- printf (" %d", m->m_len);
- }
- printf ("\n");
-}
-
-/*
* Make an mbuf from data.
*/
static struct mbuf *makembuf (void *buf, unsigned len)
@@ -1140,7 +1124,7 @@ static void ce_receive (ce_chan_t *c, unsigned char *data, int len)
return;
}
if (c->debug > 1)
- printmbuf (m);
+ m_print (m, 0);
#ifdef NETGRAPH
m->m_pkthdr.rcvif = 0;
IF_ENQUEUE(&d->rqueue, m);