summaryrefslogtreecommitdiffstats
path: root/sys/net/netisr.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2011-02-11 13:27:00 +0000
committerbz <bz@FreeBSD.org>2011-02-11 13:27:00 +0000
commitaad842be85214268dd72cf02aead5b9bbcfa4377 (patch)
tree64fc40af6909661282c8bb2fc65add4863b0be8d /sys/net/netisr.c
parenta89333362948433319f235d88ae0bc84cde9dadd (diff)
downloadFreeBSD-src-aad842be85214268dd72cf02aead5b9bbcfa4377.zip
FreeBSD-src-aad842be85214268dd72cf02aead5b9bbcfa4377.tar.gz
Mfp4 CH=177255:
Make VNET_ASSERT() available with either VNET_DEBUG or INVARIANTS. Change the syntax to match KASSERT() to allow more flexible panic messages rather than having a printf with hardcoded arguments before panic. Adjust the few assertions we have to the new format (and enhance the output). Sponsored by: The FreeBSD Foundation Sponsored by: CK Software GmbH Reviewed by: jhb MFC after: 2 weeks
Diffstat (limited to 'sys/net/netisr.c')
-rw-r--r--sys/net/netisr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/netisr.c b/sys/net/netisr.c
index 28a5a25..952b463 100644
--- a/sys/net/netisr.c
+++ b/sys/net/netisr.c
@@ -647,7 +647,8 @@ netisr_process_workstream_proto(struct netisr_workstream *nwsp, u_int proto)
if (local_npw.nw_head == NULL)
local_npw.nw_tail = NULL;
local_npw.nw_len--;
- VNET_ASSERT(m->m_pkthdr.rcvif != NULL);
+ VNET_ASSERT(m->m_pkthdr.rcvif != NULL,
+ ("%s:%d rcvif == NULL: m=%p", __func__, __LINE__, m));
CURVNET_SET(m->m_pkthdr.rcvif->if_vnet);
netisr_proto[proto].np_handler(m);
CURVNET_RESTORE();
OpenPOWER on IntegriCloud