aboutsummaryrefslogtreecommitdiff
path: root/src/libeinfo/libeinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libeinfo/libeinfo.c')
-rw-r--r--src/libeinfo/libeinfo.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libeinfo/libeinfo.c b/src/libeinfo/libeinfo.c
index d27bdb2f..7b1f2da5 100644
--- a/src/libeinfo/libeinfo.c
+++ b/src/libeinfo/libeinfo.c
@@ -674,6 +674,8 @@ eerrorn(const char *EINFO_RESTRICT fmt, ...)
int retval;
va_list ap;
+ if (!fmt || is_quiet())
+ return 0;
va_start(ap, fmt);
retval = _eerrorvn(fmt, ap);
va_end(ap);
@@ -740,7 +742,7 @@ eerror(const char *EINFO_RESTRICT fmt, ...)
int retval;
va_list ap;
- if (!fmt)
+ if (!fmt || is_quiet())
return 0;
va_start(ap, fmt);
elogv(LOG_ERR, fmt, ap);
@@ -757,7 +759,7 @@ eerrorx(const char *EINFO_RESTRICT fmt, ...)
{
va_list ap;
- if (fmt) {
+ if (fmt && !is_quiet()) {
va_start(ap, fmt);
elogv(LOG_ERR, fmt, ap);
_eerrorvn(fmt, ap);