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
This commit is contained in:
William Hubbs 2011-08-22 12:22:48 -05:00
parent a029dee59b
commit 4ee62c7903
2 changed files with 2 additions and 3 deletions

View File

@ -105,8 +105,7 @@ and
respectively, but only work when respectively, but only work when
.Va EINFO_VERBOSE .Va EINFO_VERBOSE
is true. You can also make the is true. You can also make the
.Fn einfo , .Fn einfo
.Fn ewarn ,
and and
.Fn ebegin .Fn ebegin
functions silent by setting functions silent by setting

View File

@ -725,7 +725,7 @@ ewarn(const char *EINFO_RESTRICT fmt, ...)
int retval; int retval;
va_list ap; va_list ap;
if (!fmt || is_quiet()) if (!fmt)
return 0; return 0;
va_start(ap, fmt); va_start(ap, fmt);
elogv(LOG_WARNING, fmt, ap); elogv(LOG_WARNING, fmt, ap);