Skip to content

Commit

Permalink
misc: flush syslog before possible long time cost coredump
Browse files Browse the repository at this point in the history
When coredump to mtd, it maybe cost lots of time, do flush syslog can
make user access all log when coredump processing, should be better.

Signed-off-by: buxiasen <[email protected]>
  • Loading branch information
jasonbu committed Oct 11, 2024
1 parent 6165791 commit 5cfa785
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sched/misc/assert.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,12 @@ static void dump_fatal_info(FAR struct tcb_s *rtcb,

#if defined(CONFIG_BOARD_COREDUMP_SYSLOG) || \
defined(CONFIG_BOARD_COREDUMP_BLKDEV)
/* Dump core information */

/* Flush previous SYSLOG data before possible long time coredump */

syslog_flush();

/* Dump core information */

# ifdef CONFIG_BOARD_COREDUMP_FULL
coredump_dump(INVALID_PROCESS_ID);
Expand Down

0 comments on commit 5cfa785

Please sign in to comment.