Author: bdrewery
Date: Wed May 14 15:33:51 2014
New Revision: 266035
URL: http://svnweb.freebsd.org/changeset/base/266035

Log:
  MFC r264499:
  
    Make g_access() KASSERT() more useful.

Modified:
  stable/8/sys/geom/geom_subr.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/geom/   (props changed)

Modified: stable/8/sys/geom/geom_subr.c
==============================================================================
--- stable/8/sys/geom/geom_subr.c       Wed May 14 15:32:50 2014        
(r266034)
+++ stable/8/sys/geom/geom_subr.c       Wed May 14 15:33:51 2014        
(r266035)
@@ -829,8 +829,9 @@ g_access(struct g_consumer *cp, int dcr,
 
        error = pp->geom->access(pp, dcr, dcw, dce);
        KASSERT(dcr > 0 || dcw > 0 || dce > 0 || error == 0,
-           ("Geom provider %s::%s failed closing ->access()",
-           pp->geom->class->name, pp->name));
+           ("Geom provider %s::%s dcr=%d dcw=%d dce=%d error=%d failed "
+           "closing ->access()", pp->geom->class->name, pp->name, dcr, dcw,
+           dce, error));
        if (!error) {
                /*
                 * If we open first write, spoil any partner consumers.
_______________________________________________
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