arch: Remove the unnecessary #if/#endif in assert

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-07-07 11:02:56 +08:00 committed by Petro Karashchenko
parent 9ff0971d3f
commit 3daa18b661
3 changed files with 15 additions and 26 deletions

View File

@ -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

View File

@ -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

View File

@ -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