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? */
        }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to