mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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+nuttx@gmail.com>
This commit is contained in:
parent
0037868ff0
commit
0c680bcb8e
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue