diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/verror_msg.c | 2 | ||||
-rw-r--r-- | libbb/vinfo_msg.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libbb/verror_msg.c b/libbb/verror_msg.c index 237547d..be206e4 100644 --- a/libbb/verror_msg.c +++ b/libbb/verror_msg.c @@ -32,7 +32,7 @@ void bb_verror_msg(const char *s, va_list p, const char* strerr) else fprintf(stderr, ": %s\n", strerr); } - if (logmode & LOGMODE_SYSLOG) { + if (ENABLE_FEATURE_SYSLOG & (logmode & LOGMODE_SYSLOG)) { if (!strerr) vsyslog(LOG_ERR, s, p2); else { diff --git a/libbb/vinfo_msg.c b/libbb/vinfo_msg.c index e8776e5..84825bc 100644 --- a/libbb/vinfo_msg.c +++ b/libbb/vinfo_msg.c @@ -24,7 +24,7 @@ void bb_vinfo_msg(const char *s, va_list p) vprintf(s, p); putchar('\n'); } - if (logmode & LOGMODE_SYSLOG) + if (ENABLE_FEATURE_SYSLOG & (logmode & LOGMODE_SYSLOG)) vsyslog(LOG_INFO, s, p2); va_end(p2); } |