aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/uipc_mbuf.c
diff options
context:
space:
mode:
authorJohn-Mark Gurney <jmg@FreeBSD.org>2006-03-14 00:22:10 +0000
committerJohn-Mark Gurney <jmg@FreeBSD.org>2006-03-14 00:22:10 +0000
commit45e0d0aa301297ce05ef88fac6ce34db3b748070 (patch)
tree2f906c3c1840dcb70f8af6502886528ab9fc391d /sys/kern/uipc_mbuf.c
parent8d0593f54e62cfd8d52f4d46328568dea5a4c196 (diff)
downloadsrc-45e0d0aa301297ce05ef88fac6ce34db3b748070.tar.gz
src-45e0d0aa301297ce05ef88fac6ce34db3b748070.zip
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...
Notes
Notes: svn path=/head/; revision=156700
Diffstat (limited to 'sys/kern/uipc_mbuf.c')
-rw-r--r--sys/kern/uipc_mbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index 0eb8a701932f..887db0048b2c 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;