svn commit: r266031 - stable/10/sys/geom
Bryan Drewery
bdrewery at FreeBSD.org
Wed May 14 15:30:50 UTC 2014
Author: bdrewery
Date: Wed May 14 15:30:49 2014
New Revision: 266031
URL: http://svnweb.freebsd.org/changeset/base/266031
Log:
MFC r264499:
Make g_access() KASSERT() more useful.
Modified:
stable/10/sys/geom/geom_subr.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/geom/geom_subr.c
==============================================================================
--- stable/10/sys/geom/geom_subr.c Wed May 14 15:24:25 2014 (r266030)
+++ stable/10/sys/geom/geom_subr.c Wed May 14 15:30:49 2014 (r266031)
@@ -912,8 +912,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