summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2011-08-22 12:22:48 -0500
committerWilliam Hubbs <williamh@gentoo.org>2011-08-22 12:39:26 -0500
commit4ee62c7903c65557c493f51d6703264a816156cd (patch)
tree1f64cfbcd826c2171bbcc6120dde68ee8fd8703d
parenta029dee59b22bdfb30fefb90c9409be813c1f824 (diff)
downloadopenrc-4ee62c7903c65557c493f51d6703264a816156cd.tar.gz
openrc-4ee62c7903c65557c493f51d6703264a816156cd.tar.bz2
openrc-4ee62c7903c65557c493f51d6703264a816156cd.tar.xz
Libeinfo: do not suppress ewarn() messages
The ewarn() function was affected by the EINFO_QUIET environment variable which lead to warning messages being suppressed. Warnings should not be suppressed. Reported-by: Hanno Boeck <hanno@gentoo.org> X-Gentoo-Bug: 380073 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=380073
-rw-r--r--man/einfo.33
-rw-r--r--src/libeinfo/libeinfo.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/man/einfo.3 b/man/einfo.3
index dcb576c..5dc86d0 100644
--- a/man/einfo.3
+++ b/man/einfo.3
@@ -105,8 +105,7 @@ and
respectively, but only work when
.Va EINFO_VERBOSE
is true. You can also make the
-.Fn einfo ,
-.Fn ewarn ,
+.Fn einfo
and
.Fn ebegin
functions silent by setting
diff --git a/src/libeinfo/libeinfo.c b/src/libeinfo/libeinfo.c
index 777c0f8..44d4c90 100644
--- a/src/libeinfo/libeinfo.c
+++ b/src/libeinfo/libeinfo.c
@@ -725,7 +725,7 @@ ewarn(const char *EINFO_RESTRICT fmt, ...)
int retval;
va_list ap;
- if (!fmt || is_quiet())
+ if (!fmt)
return 0;
va_start(ap, fmt);
elogv(LOG_WARNING, fmt, ap);