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:
parent
a029dee59b
commit
4ee62c7903
@ -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
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user