Author: bz
Date: Wed Aug 29 13:10:34 2012
New Revision: 239830
URL: http://svn.freebsd.org/changeset/base/239830

Log:
  MFC 238934:
  
    Improve the should-never-hit printf to ease debugging in case we'd ever hit
    it again when doing the delayed IPv6 checksum calculations.

Modified:
  stable/9/sys/netinet6/ip6_output.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/netinet6/ip6_output.c
==============================================================================
--- stable/9/sys/netinet6/ip6_output.c  Wed Aug 29 13:00:00 2012        
(r239829)
+++ stable/9/sys/netinet6/ip6_output.c  Wed Aug 29 13:10:34 2012        
(r239830)
@@ -195,8 +195,9 @@ in6_delayed_cksum(struct mbuf *m, uint32
        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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to