arch: Remove the unnecessary #if/#endif in assert
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
9ff0971d3f
commit
3daa18b661
@ -284,20 +284,17 @@ static void arm_showtasks(void)
|
||||
# ifdef CONFIG_SMP
|
||||
" ----"
|
||||
# endif
|
||||
" %7lu"
|
||||
" %7u"
|
||||
# ifdef CONFIG_STACK_COLORATION
|
||||
" %7lu %3" PRId32 ".%1" PRId32 "%%%c"
|
||||
" %7" PRId32 " %3" PRId32 ".%1" PRId32 "%%%c"
|
||||
# endif
|
||||
# ifdef CONFIG_SCHED_CPULOAD
|
||||
" ----"
|
||||
# endif
|
||||
# if CONFIG_TASK_NAME_SIZE > 0
|
||||
" irq"
|
||||
# endif
|
||||
"\n"
|
||||
, (unsigned long)(CONFIG_ARCH_INTERRUPTSTACK & ~7)
|
||||
" irq\n"
|
||||
, (CONFIG_ARCH_INTERRUPTSTACK & ~7)
|
||||
# ifdef CONFIG_STACK_COLORATION
|
||||
, (unsigned long)stack_used
|
||||
, stack_used
|
||||
, stack_filled / 10, stack_filled % 10,
|
||||
(stack_filled >= 10 * 80 ? '!' : ' ')
|
||||
# endif
|
||||
|
@ -284,20 +284,17 @@ static inline void riscv_showtasks(void)
|
||||
# ifdef CONFIG_SMP
|
||||
" ----"
|
||||
# endif
|
||||
" %7lu"
|
||||
" %7u"
|
||||
# ifdef CONFIG_STACK_COLORATION
|
||||
" %7lu %3" PRId32 ".%1" PRId32 "%%%c"
|
||||
" %7" PRId32 " %3" PRId32 ".%1" PRId32 "%%%c"
|
||||
# endif
|
||||
# ifdef CONFIG_SCHED_CPULOAD
|
||||
" ----"
|
||||
# endif
|
||||
# if CONFIG_TASK_NAME_SIZE > 0
|
||||
" irq"
|
||||
# endif
|
||||
"\n"
|
||||
, (unsigned long)(CONFIG_ARCH_INTERRUPTSTACK & ~15)
|
||||
" irq\n"
|
||||
, (CONFIG_ARCH_INTERRUPTSTACK & ~15)
|
||||
# ifdef CONFIG_STACK_COLORATION
|
||||
, (unsigned long)stack_used
|
||||
, stack_used
|
||||
, stack_filled / 10, stack_filled % 10,
|
||||
(stack_filled >= 10 * 80 ? '!' : ' ')
|
||||
# endif
|
||||
|
@ -122,9 +122,7 @@ static void xtensa_dump_task(struct tcb_s *tcb, void *arg)
|
||||
#ifdef CONFIG_SCHED_CPULOAD
|
||||
" %3" PRId32 ".%01" PRId32 "%%"
|
||||
#endif
|
||||
#if CONFIG_TASK_NAME_SIZE > 0
|
||||
" %s%s\n"
|
||||
#endif
|
||||
, tcb->pid, tcb->sched_priority
|
||||
#ifdef CONFIG_SMP
|
||||
, tcb->cpu
|
||||
@ -201,20 +199,17 @@ static inline void xtensa_showtasks(void)
|
||||
# ifdef CONFIG_SMP
|
||||
" ----"
|
||||
# endif
|
||||
" %7lu"
|
||||
" %7u"
|
||||
# ifdef CONFIG_STACK_COLORATION
|
||||
" %7lu %3" PRId32 ".%1" PRId32 "%%%c"
|
||||
" %7" PRId32 " %3" PRId32 ".%1" PRId32 "%%%c"
|
||||
# endif
|
||||
# ifdef CONFIG_SCHED_CPULOAD
|
||||
" ----"
|
||||
# endif
|
||||
# if CONFIG_TASK_NAME_SIZE > 0
|
||||
" irq"
|
||||
# endif
|
||||
"\n"
|
||||
, (unsigned long)(CONFIG_ARCH_INTERRUPTSTACK & ~15)
|
||||
" irq\n"
|
||||
, (CONFIG_ARCH_INTERRUPTSTACK & ~15)
|
||||
# ifdef CONFIG_STACK_COLORATION
|
||||
, (unsigned long)stack_used
|
||||
, stack_used
|
||||
, stack_filled / 10, stack_filled % 10,
|
||||
(stack_filled >= 10 * 80 ? '!' : ' ')
|
||||
# endif
|
||||
|
Loading…
Reference in New Issue
Block a user