summaryrefslogtreecommitdiffstats
path: root/sys/net/if.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2010-02-20 21:43:36 +0000
committerbz <bz@FreeBSD.org>2010-02-20 21:43:36 +0000
commit77e8f746fc7836ec49e92916ef771aefe1abc569 (patch)
tree9a3cd2cb85c566221f18a7db1abf4466c8dddf00 /sys/net/if.c
parentf9cc41e4ee80a4c28e6617322ecf1fea377c070e (diff)
downloadFreeBSD-src-77e8f746fc7836ec49e92916ef771aefe1abc569.zip
FreeBSD-src-77e8f746fc7836ec49e92916ef771aefe1abc569.tar.gz
Enhance a panic string to contain more useful debugging information.
Sponsored by: ISPsystem Reviewed by: rwatson MFC after: 5 days
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index ba5b73f..68f49ef 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -809,7 +809,8 @@ if_detach_internal(struct ifnet *ifp, int vmove)
IFNET_WUNLOCK();
if (!found) {
if (vmove)
- panic("interface not in it's own ifnet list");
+ panic("%s: ifp=%p not on the ifnet tailq %p",
+ __func__, ifp, &V_ifnet);
else
return; /* XXX this should panic as well? */
}
OpenPOWER on IntegriCloud