svn commit: r266034 - stable/9/sys/geom

Bryan Drewery bdrewery at FreeBSD.org
Wed May 14 15:32:50 UTC 2014


Author: bdrewery
Date: Wed May 14 15:32:50 2014
New Revision: 266034
URL: http://svnweb.freebsd.org/changeset/base/266034

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

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

Modified: stable/9/sys/geom/geom_subr.c
==============================================================================
--- stable/9/sys/geom/geom_subr.c	Wed May 14 15:31:18 2014	(r266033)
+++ stable/9/sys/geom/geom_subr.c	Wed May 14 15:32:50 2014	(r266034)
@@ -835,8 +835,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.


More information about the svn-src-stable mailing list