diff options
author | bz <bz@FreeBSD.org> | 2012-07-31 05:34:54 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2012-07-31 05:34:54 +0000 |
commit | e07aa136d7d34b5af28c678970dc135100016444 (patch) | |
tree | 79d5434e7a946157426377887ab82c872e6a6f9b /sys/netinet6 | |
parent | e4171792ab376fb60cd3e4a8a2152d5eccef0991 (diff) | |
download | FreeBSD-src-e07aa136d7d34b5af28c678970dc135100016444.zip FreeBSD-src-e07aa136d7d34b5af28c678970dc135100016444.tar.gz |
Improve the should-never-hit printf to ease debugging in case we'd ever hit
it again when doing the delayed IPv6 checksum calculations.
MFC after: 3 days
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/ip6_output.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index ba17993..9270d89 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -195,8 +195,9 @@ in6_delayed_cksum(struct mbuf *m, uint32_t plen, u_short offset) offset += m->m_pkthdr.csum_data; /* checksum offset */ if (offset + sizeof(u_short) > m->m_len) { - printf("%s: delayed m_pullup, m->len: %d off: %d\n", - __func__, m->m_len, offset); + printf("%s: delayed m_pullup, m->len: %d plen %u off %u " + "csum_flags=0x%04x\n", __func__, m->m_len, plen, offset, + m->m_pkthdr.csum_flags); /* * XXX this should not happen, but if it does, the correct * behavior may be to insert the checksum in the appropriate |