summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2016-06-06 22:34:12 +0000
committerbz <bz@FreeBSD.org>2016-06-06 22:34:12 +0000
commit5baf25edd02e5be7121f42396ec9a31e1ad06d98 (patch)
tree91c4a7cfd101eff9cf620145566b4c379806937e /sys/netinet6
parentcbabf9b05eb30469d91bedc8c80b9ac45eec4d40 (diff)
downloadFreeBSD-src-5baf25edd02e5be7121f42396ec9a31e1ad06d98.zip
FreeBSD-src-5baf25edd02e5be7121f42396ec9a31e1ad06d98.tar.gz
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
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/mld6.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet6/mld6.c b/sys/netinet6/mld6.c
index a2f2d7e..dcae9f8 100644
--- a/sys/netinet6/mld6.c
+++ b/sys/netinet6/mld6.c
@@ -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);
}
OpenPOWER on IntegriCloud