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