svn commit: r204142 - head/sys/net

Bjoern A. Zeeb bz at FreeBSD.org
Sat Feb 20 21:43:36 UTC 2010


Author: bz
Date: Sat Feb 20 21:43:36 2010
New Revision: 204142
URL: http://svn.freebsd.org/changeset/base/204142

Log:
  Enhance a panic string to contain more useful debugging information.
  
  Sponsored by:	ISPsystem
  Reviewed by:	rwatson
  MFC after:	5 days

Modified:
  head/sys/net/if.c

Modified: head/sys/net/if.c
==============================================================================
--- head/sys/net/if.c	Sat Feb 20 20:30:40 2010	(r204141)
+++ head/sys/net/if.c	Sat Feb 20 21:43:36 2010	(r204142)
@@ -809,7 +809,8 @@ if_detach_internal(struct ifnet *ifp, in
 	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? */
 	}


More information about the svn-src-all mailing list