fs/dump: correct SCHED_DUMP_ON_EXIT to DUMP_ON_EXIT
1. correct SCHED_DUMP_ON_EXIT to DUMP_ON_EXIT 2. dump file list only if DUMP_ON_EXIT enabled Signed-off-by: chao an <anchao@lixiang.com>
This commit is contained in:
parent
baa716a85d
commit
3cce16dd0c
@ -372,6 +372,7 @@ void files_initlist(FAR struct filelist *list)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_DUMP_ON_EXIT
|
||||
void files_dumplist(FAR struct filelist *list)
|
||||
{
|
||||
int count = files_countlist(list);
|
||||
@ -424,6 +425,7 @@ void files_dumplist(FAR struct filelist *list)
|
||||
);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: files_getlist
|
||||
|
@ -877,7 +877,11 @@ void files_initlist(FAR struct filelist *list);
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_DUMP_ON_EXIT
|
||||
void files_dumplist(FAR struct filelist *list);
|
||||
#else
|
||||
# define files_dumplist(l)
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: files_getlist
|
||||
|
@ -422,7 +422,7 @@ static void dump_backtrace(FAR struct tcb_s *tcb, FAR void *arg)
|
||||
* Name: dump_filelist
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_SCHED_DUMP_ON_EXIT
|
||||
#ifdef CONFIG_DUMP_ON_EXIT
|
||||
static void dump_filelist(FAR struct tcb_s *tcb, FAR void *arg)
|
||||
{
|
||||
FAR struct filelist *filelist = &tcb->group->tg_filelist;
|
||||
@ -512,7 +512,7 @@ static void dump_tasks(void)
|
||||
nxsched_foreach(dump_backtrace, NULL);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SCHED_DUMP_ON_EXIT
|
||||
#ifdef CONFIG_DUMP_ON_EXIT
|
||||
nxsched_foreach(dump_filelist, NULL);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user