diff options
Diffstat (limited to 'winsup/cygwin/syslog.cc')
-rw-r--r-- | winsup/cygwin/syslog.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/syslog.cc b/winsup/cygwin/syslog.cc index 1a56f0758..a4beaea74 100644 --- a/winsup/cygwin/syslog.cc +++ b/winsup/cygwin/syslog.cc @@ -79,7 +79,7 @@ setlogmask (int maskpri) return _my_tls.locals.process_logmask; int old_mask = _my_tls.locals.process_logmask; - _my_tls.locals.process_logmask = maskpri & LOG_PRIMASK; + _my_tls.locals.process_logmask = maskpri; return old_mask; } @@ -263,7 +263,7 @@ vsyslog (int priority, const char *message, va_list ap) { debug_printf ("%x %s", priority, message); /* If the priority fails the current mask, reject */ - if (((priority & LOG_PRIMASK) & _my_tls.locals.process_logmask) == 0) + if ((LOG_MASK (LOG_PRI (priority)) & _my_tls.locals.process_logmask) == 0) { debug_printf ("failing message %x due to priority mask %x", priority, _my_tls.locals.process_logmask); |