diff options
author | bz <bz@FreeBSD.org> | 2016-06-06 10:13:48 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2016-06-06 10:13:48 +0000 |
commit | 4948c572e7d17a6c09d98026c5a15de8d7b71e09 (patch) | |
tree | ae97fdd857a6007f6609ef300092fec5d023a4fd /sys/net | |
parent | 1dec5d68fae9c39649394a262fbc89b6605eb997 (diff) | |
download | FreeBSD-src-4948c572e7d17a6c09d98026c5a15de8d7b71e09.zip FreeBSD-src-4948c572e7d17a6c09d98026c5a15de8d7b71e09.tar.gz |
Make the KASSERT message more helpful by also printing the ifp information
which we are asserting.
Obtained from: projects/vnet
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_ethersubr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 2542ab6..82c8b3a 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -753,7 +753,8 @@ ether_input(struct ifnet *ifp, struct mbuf *m) * We will rely on rcvif being set properly in the deferred context, * so assert it is correct here. */ - KASSERT(m->m_pkthdr.rcvif == ifp, ("%s: ifnet mismatch", __func__)); + KASSERT(m->m_pkthdr.rcvif == ifp, ("%s: ifnet mismatch m %p " + "rcvif %p ifp %p", __func__, m, m->m_pkthdr.rcvif, ifp)); CURVNET_SET_QUIET(ifp->if_vnet); netisr_dispatch(NETISR_ETHER, m); CURVNET_RESTORE(); |