Date: Sun, 3 Sep 2017 09:05:48 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r323140 - stable/11/sys/geom Message-ID: <201709030905.v8395m78093602@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709030905.v8395m78093602>