summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmg <jmg@FreeBSD.org>2006-03-14 00:22:10 +0000
committerjmg <jmg@FreeBSD.org>2006-03-14 00:22:10 +0000
commit4565523ab1485e786e99f9b2ee2494ccb099eacf (patch)
tree2f906c3c1840dcb70f8af6502886528ab9fc391d
parentef2d575a8e34d83654378d2abd9cf52f30073977 (diff)
downloadFreeBSD-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...
-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 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;
OpenPOWER on IntegriCloud