diff options
author | bz <bz@FreeBSD.org> | 2016-06-06 22:34:12 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2016-06-06 22:34:12 +0000 |
commit | 5baf25edd02e5be7121f42396ec9a31e1ad06d98 (patch) | |
tree | 91c4a7cfd101eff9cf620145566b4c379806937e /sys/netinet6 | |
parent | cbabf9b05eb30469d91bedc8c80b9ac45eec4d40 (diff) | |
download | FreeBSD-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.c | 3 |
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); } |