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
This commit is contained in:
Bjoern A. Zeeb 2016-06-06 22:34:12 +00:00
parent b941cb8d60
commit 74b44794c6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301528

View File

@ -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);
}