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...
This commit is contained in:
parent
8d0593f54e
commit
45e0d0aa30
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156700
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user