musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/misc/syslog.c
diff options
context:
space:
mode:
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);
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月05日 07:37:52 +0000

AltStyle によって変換されたページ (->オリジナル) /