Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jul 2012 05:34:54 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r238934 - head/sys/netinet6
Message-ID:  <201207310534.q6V5YsZ5090455@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Tue Jul 31 05:34:54 2012
New Revision: 238934
URL: http://svn.freebsd.org/changeset/base/238934

Log:
  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

Modified:
  head/sys/netinet6/ip6_output.c

Modified: head/sys/netinet6/ip6_output.c
==============================================================================
--- head/sys/netinet6/ip6_output.c	Tue Jul 31 05:23:23 2012	(r238933)
+++ head/sys/netinet6/ip6_output.c	Tue Jul 31 05:34:54 2012	(r238934)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207310534.q6V5YsZ5090455>