aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--man/einfo.33
-rw-r--r--src/libeinfo/libeinfo.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/man/einfo.3 b/man/einfo.3
index f613df34..0af12a8b 100644
--- a/man/einfo.3
+++ b/man/einfo.3
@@ -105,7 +105,8 @@ and
respectively, but only work when
.Va EINFO_VERBOSE
is true. You can also make the
-.Fn einfo
+.Fn einfo ,
+.Fn ewarn ,
and
.Fn ebegin
functions silent by setting
diff --git a/src/libeinfo/libeinfo.c b/src/libeinfo/libeinfo.c
index 6f0ca766..d27bdb2f 100644
--- a/src/libeinfo/libeinfo.c
+++ b/src/libeinfo/libeinfo.c
@@ -705,7 +705,7 @@ ewarn(const char *EINFO_RESTRICT fmt, ...)
int retval;
va_list ap;
- if (!fmt)
+ if (!fmt || is_quiet())
return 0;
va_start(ap, fmt);
elogv(LOG_WARNING, fmt, ap);