Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Feb 2010 21:43:36 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r204142 - head/sys/net
Message-ID:  <201002202143.o1KLhaZD026513@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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? */
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002202143.o1KLhaZD026513>