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:
parent
b941cb8d60
commit
74b44794c6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301528
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user