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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user