From 0c680bcb8e011fcab1d6473da0f175348e75ceb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Maggioni?= Date: Tue, 8 Jul 2025 00:40:50 +0200 Subject: [PATCH] system/coredump: Fix missing loglevel to logmask conversion. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The current setlogmask call used in the coredump app specifies a raw log level instead of a bitmask, and this causes wrong evaluations later on when that value is checked against a mask. Therefore the LOG_UPTO macro is added for conversion. Signed-off-by: Niccolò Maggioni --- system/coredump/coredump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/coredump/coredump.c b/system/coredump/coredump.c index 22a1f15d2..6a742f479 100644 --- a/system/coredump/coredump.c +++ b/system/coredump/coredump.c @@ -418,7 +418,7 @@ static int coredump_now(int pid, FAR char *filename) #endif printf("Start coredump:\n"); - logmask = setlogmask(LOG_ALERT); + logmask = setlogmask(LOG_UPTO(LOG_ALERT)); /* Initialize hex output stream */