diff options
author | jmg <jmg@FreeBSD.org> | 2006-03-14 00:22:10 +0000 |
---|---|---|
committer | jmg <jmg@FreeBSD.org> | 2006-03-14 00:22:10 +0000 |
commit | 4565523ab1485e786e99f9b2ee2494ccb099eacf (patch) | |
tree | 2f906c3c1840dcb70f8af6502886528ab9fc391d /sys/kern/uipc_mbuf.c | |
parent | ef2d575a8e34d83654378d2abd9cf52f30073977 (diff) | |
download | FreeBSD-src-4565523ab1485e786e99f9b2ee2494ccb099eacf.zip FreeBSD-src-4565523ab1485e786e99f9b2ee2494ccb099eacf.tar.gz |
spell pdata correctly, we now will only dump maxlen of each mbuf in the
chain, instead of the entire mbuf... This should probably be reworked
so that it prints at max maxlen bytes for the entire chain...
Diffstat (limited to 'sys/kern/uipc_mbuf.c')
-rw-r--r-- | sys/kern/uipc_mbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index 0eb8a70..887db00 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -1406,7 +1406,7 @@ m_print(const struct mbuf *m, int maxlen) "\11proto5\10proto4\7proto3\6proto2\5proto1\4rdonly" "\3eor\2pkthdr\1ext", pdata ? "" : "\n"); if (pdata) - printf(", %*D\n", m2->m_len, (u_char *)m2->m_data, "-"); + printf(", %*D\n", pdata, (u_char *)m2->m_data, "-"); if (len != -1) len -= m2->m_len; m2 = m2->m_next; |