From e608d5522d8edb80baf5ff1c88793ba0c3420b68 Mon Sep 17 00:00:00 2001 From: ligd Date: Tue, 21 Nov 2023 15:54:51 +0800 Subject: [PATCH] syslogmask: add default value Kconfig to syslogmask Signed-off-by: ligd --- drivers/syslog/Kconfig | 4 ++++ libs/libc/syslog/lib_setlogmask.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/syslog/Kconfig b/drivers/syslog/Kconfig index 88500531f3..32016eb2e2 100644 --- a/drivers/syslog/Kconfig +++ b/drivers/syslog/Kconfig @@ -11,6 +11,10 @@ config ARCH_SYSLOG bool default n +config SYSLOG_DEFAULT_MASK + hex "syslog mask default value" + default 0xff + comment "SYSLOG options" config SYSLOG_MAX_CHANNELS diff --git a/libs/libc/syslog/lib_setlogmask.c b/libs/libc/syslog/lib_setlogmask.c index d6398c6c69..8b60a604b6 100644 --- a/libs/libc/syslog/lib_setlogmask.c +++ b/libs/libc/syslog/lib_setlogmask.c @@ -37,7 +37,7 @@ /* The currently enabled set of syslog priorities */ -uint8_t g_syslog_mask = LOG_ALL; +uint8_t g_syslog_mask = CONFIG_SYSLOG_DEFAULT_MASK; /**************************************************************************** * Public Functions