svn commit: r323140 - stable/11/sys/geom
Konstantin Belousov
kib at FreeBSD.org
Sun Sep 3 09:05:49 UTC 2017
Author: kib
Date: Sun Sep 3 09:05:48 2017
New Revision: 323140
URL: https://svnweb.freebsd.org/changeset/base/323140
Log:
MFC r322948:
Let g_access() log the actual error number.
PR: 221855
Modified:
stable/11/sys/geom/geom_subr.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/geom/geom_subr.c
==============================================================================
--- stable/11/sys/geom/geom_subr.c Sun Sep 3 09:03:29 2017 (r323139)
+++ stable/11/sys/geom/geom_subr.c Sun Sep 3 09:05:48 2017 (r323140)
@@ -914,8 +914,8 @@ g_access(struct g_consumer *cp, int dcr, int dcw, int
return (EPERM);
/* If we try to open more but provider is error'ed: fail */
else if ((dcr > 0 || dcw > 0 || dce > 0) && pp->error != 0) {
- printf("%s(%d): provider %s has error\n",
- __func__, __LINE__, pp->name);
+ printf("%s(%d): provider %s has error %d set\n",
+ __func__, __LINE__, pp->name, pp->error);
return (pp->error);
}
More information about the svn-src-stable
mailing list