From 45e0d0aa301297ce05ef88fac6ce34db3b748070 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Tue, 14 Mar 2006 00:22:10 +0000 Subject: 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... --- sys/kern/uipc_mbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/uipc_mbuf.c') 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; -- cgit v1.2.3