libeinfo: add separate variable to suppress eerror messages

Add an EERROR_QUIET environment variable which works like EINFO_QUIET
but for the eerror functions. This will allow library consumers to
choose whether to suppress eerror messages separately from einfo and
ewarn messages.

X-Gentoo-Bug: 482396
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=482396
This commit is contained in:
William Hubbs
2013-09-01 15:06:15 -05:00
parent 4ce3cb90a0
commit 2590bf7a2b
2 changed files with 15 additions and 4 deletions

View File

@@ -107,7 +107,6 @@ respectively, but only work when
is true. You can also make the
.Fn einfo ,
.Fn ewarn ,
.Fn eerror ,
and
.Fn ebegin
functions silent by setting
@@ -186,6 +185,12 @@ when set to true makes the
and
.Fn einfon
family of functions quiet, so nothing is printed.
.Va EERROR_QUIET
when set to true makes the
.Fn eerror
and
.Fn eerrorn
family of functions quiet, so nothing is printed.
.Pp
.Va EINFO_VERBOSE
when set to true makes the