summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2024-06-13 11:48:40 -0400
committerRich Felker <dalias@aerifal.cx>2024-06-13 11:48:40 -0400
commit895736d49bd2bb318c69de99a05ea70c035c2da9 (patch)
treebfcd48c5dc8b815755818ad2afe515cc629f9c8c /src
parent05ce67fea99ca09cd4b6625cff7aec9cc222dd5a (diff)
downloadmusl-895736d49bd2bb318c69de99a05ea70c035c2da9.tar.gz
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')
-rw-r--r--src/misc/syslog.c2
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);