diff options
author | Rich Felker <dalias@aerifal.cx> | 2024-06-13 11:48:40 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2024-06-13 11:48:40 -0400 |
commit | 895736d49bd2bb318c69de99a05ea70c035c2da9 (patch) | |
tree | bfcd48c5dc8b815755818ad2afe515cc629f9c8c /src/misc/syslog.c | |
parent | 05ce67fea99ca09cd4b6625cff7aec9cc222dd5a (diff) | |
download | musl-895736d49bd2bb318c69de99a05ea70c035c2da9.tar.gz musl-895736d49bd2bb318c69de99a05ea70c035c2da9.tar.xz musl-895736d49bd2bb318c69de99a05ea70c035c2da9.zip |
syslog: fix incorrect LOG_MAKEPRI and LOG_FAC[MASK] macros
these are nonstandard and unnecessary for using the associated functionality, but resulted in applications that used them malfunctioning. patch based on proposed fix by erny hombre.
Diffstat (limited to 'src/misc/syslog.c')
-rw-r--r-- | src/misc/syslog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/syslog.c b/src/misc/syslog.c index 710202f9..3131c782 100644 --- a/src/misc/syslog.c +++ b/src/misc/syslog.c @@ -128,7 +128,7 @@ static void _vsyslog(int priority, const char *message, va_list ap) static void __vsyslog(int priority, const char *message, va_list ap) { int cs; - if (!(log_mask & LOG_MASK(priority&7)) || (priority&~0x3ff)) return; + if (!(log_mask & LOG_MASK(priority&7)) || (priority&~0xff)) return; pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs); LOCK(lock); _vsyslog(priority, message, ap); |