diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2014-04-15 14:41:41 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2014-04-15 14:41:41 +0000 |
commit | 4d8489ab7f537ca898792f864f738389603158c3 (patch) | |
tree | 3f754401f50b4133a416f82c000a6c7a90fb1871 /sys/geom | |
parent | dc2495c46c7ae269d4017b192678bb192c6760e5 (diff) | |
download | FreeBSD-src-4d8489ab7f537ca898792f864f738389603158c3.zip FreeBSD-src-4d8489ab7f537ca898792f864f738389603158c3.tar.gz |
Make g_access() KASSERT() more useful.
Sponsored by: EMC / Isilon Storage Division
Obtained from: Isilon OneFS
MFC after: 2 weeks
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/geom_subr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c index dd8c4ab..6793373 100644 --- a/sys/geom/geom_subr.c +++ b/sys/geom/geom_subr.c @@ -912,8 +912,9 @@ g_access(struct g_consumer *cp, int dcr, int dcw, int dce) 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. |