svn commit: r301528 - head/sys/netinet6

Bjoern A. Zeeb bz at FreeBSD.org
Mon Jun 6 22:34:13 UTC 2016


Author: bz
Date: Mon Jun  6 22:34:12 2016
New Revision: 301528
URL: https://svnweb.freebsd.org/changeset/base/301528

Log:
  Make KASSERT message more useful by printing the variables on which
  we assert.
  
  Obtained from:	projects/vnet
  MFC after:	2 weeks
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/netinet6/mld6.c

Modified: head/sys/netinet6/mld6.c
==============================================================================
--- head/sys/netinet6/mld6.c	Mon Jun  6 22:26:18 2016	(r301527)
+++ head/sys/netinet6/mld6.c	Mon Jun  6 22:34:12 2016	(r301528)
@@ -300,7 +300,8 @@ mld_restore_context(struct mbuf *m)
 
 #if defined(VIMAGE) && defined(INVARIANTS)
 	KASSERT(curvnet == m->m_pkthdr.PH_loc.ptr,
-	    ("%s: called when curvnet was not restored", __func__));
+	    ("%s: called when curvnet was not restored: cuvnet %p m ptr %p",
+	    __func__, curvnet, m->m_pkthdr.PH_loc.ptr));
 #endif
 	return (m->m_pkthdr.flowid);
 }


More information about the svn-src-head mailing list