fix if (ENABLE_FEATURE_SYSLOG & (...)) - should be &&

This commit is contained in:
Denis Vlasenko 2006-09-07 16:03:45 +00:00
parent 049d6b8c08
commit b750dec40a
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ void bb_verror_msg(const char *s, va_list p, const char* strerr)
else
fprintf(stderr, ": %s\n", strerr);
}
if (ENABLE_FEATURE_SYSLOG & (logmode & LOGMODE_SYSLOG)) {
if (ENABLE_FEATURE_SYSLOG && (logmode & LOGMODE_SYSLOG)) {
if (!strerr)
vsyslog(LOG_ERR, s, p2);
else {

View File

@ -24,7 +24,7 @@ void bb_vinfo_msg(const char *s, va_list p)
vprintf(s, p);
putchar('\n');
}
if (ENABLE_FEATURE_SYSLOG & (logmode & LOGMODE_SYSLOG))
if (ENABLE_FEATURE_SYSLOG && (logmode & LOGMODE_SYSLOG))
vsyslog(LOG_INFO, s, p2);
va_end(p2);
}