This is an automated email from the ASF dual-hosted git repository. jerpelea pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push: new 0c680bcb8 system/coredump: Fix missing loglevel to logmask conversion. 0c680bcb8 is described below commit 0c680bcb8e011fcab1d6473da0f175348e75ceb0 Author: Niccolò Maggioni <nicco.maggi...@gmail.com> AuthorDate: Tue Jul 8 00:40:50 2025 +0200 system/coredump: Fix missing loglevel to logmask conversion. 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 <nicco.maggioni+nu...@gmail.com> --- 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 */