diff options
author | bz <bz@FreeBSD.org> | 2010-02-20 21:43:36 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2010-02-20 21:43:36 +0000 |
commit | 77e8f746fc7836ec49e92916ef771aefe1abc569 (patch) | |
tree | 9a3cd2cb85c566221f18a7db1abf4466c8dddf00 /sys/net/if.c | |
parent | f9cc41e4ee80a4c28e6617322ecf1fea377c070e (diff) | |
download | FreeBSD-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.c | 3 |
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? */ } |