diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2014-09-10 09:57:32 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2014-09-10 09:57:32 +0000 |
| commit | 620dbb4ed12553d321e7a960129b6191ee75f698 (patch) | |
| tree | 9737243e31cc5720a8d26c0e5d45824e5475aa02 /sys/dev/ce | |
| parent | eb4e5b0ad50942e24674194ebdd623f6929303c5 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ce')
| -rw-r--r-- | sys/dev/ce/if_ce.c | 18 |
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); |
