arch/assert: Keep the thread dump column order same as ps

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-06-05 17:10:19 +08:00 committed by Petro Karashchenko
parent c52a19c8dc
commit b02db04e00
3 changed files with 33 additions and 33 deletions

View File

@ -201,10 +201,10 @@ static void arm_dump_task(struct tcb_s *tcb, void *arg)
#ifdef CONFIG_SMP
" %4d"
#endif
" %7lu"
#ifdef CONFIG_STACK_COLORATION
" %7lu"
#endif
" %7lu"
#ifdef CONFIG_STACK_COLORATION
" %3" PRId32 ".%1" PRId32 "%%%c"
#endif
@ -212,21 +212,21 @@ static void arm_dump_task(struct tcb_s *tcb, void *arg)
" %3" PRId32 ".%01" PRId32 "%%"
#endif
#if CONFIG_TASK_NAME_SIZE > 0
" %s %s\n",
" %s %s\n"
#else
" %s\n",
" %s\n"
#endif
tcb->pid, tcb->sched_priority,
, tcb->pid, tcb->sched_priority
#ifdef CONFIG_SMP
tcb->cpu,
, tcb->cpu
#endif
, (unsigned long)tcb->adj_stack_size
#ifdef CONFIG_STACK_COLORATION
, (unsigned long)up_check_tcbstack(tcb)
#endif
#ifdef CONFIG_STACK_COLORATION
(unsigned long)up_check_tcbstack(tcb),
#endif
(unsigned long)tcb->adj_stack_size
#ifdef CONFIG_STACK_COLORATION
, stack_filled / 10, stack_filled % 10,
(stack_filled >= 10 * 80 ? '!' : ' ')
, stack_filled / 10, stack_filled % 10
, (stack_filled >= 10 * 80 ? '!' : ' ')
#endif
#ifdef CONFIG_SCHED_CPULOAD
, intpart, fracpart

View File

@ -201,10 +201,10 @@ static void riscv_dump_task(struct tcb_s *tcb, void *arg)
#ifdef CONFIG_SMP
" %4d"
#endif
" %7lu"
#ifdef CONFIG_STACK_COLORATION
" %7lu"
#endif
" %7lu"
#ifdef CONFIG_STACK_COLORATION
" %3" PRId32 ".%1" PRId32 "%%%c"
#endif
@ -212,21 +212,21 @@ static void riscv_dump_task(struct tcb_s *tcb, void *arg)
" %3" PRId32 ".%01" PRId32 "%%"
#endif
#if CONFIG_TASK_NAME_SIZE > 0
" %s %s\n",
" %s %s\n"
#else
" %s\n",
" %s\n"
#endif
tcb->pid, tcb->sched_priority,
, tcb->pid, tcb->sched_priority
#ifdef CONFIG_SMP
tcb->cpu,
, tcb->cpu
#endif
, (unsigned long)tcb->adj_stack_size
#ifdef CONFIG_STACK_COLORATION
, (unsigned long)up_check_tcbstack(tcb)
#endif
#ifdef CONFIG_STACK_COLORATION
(unsigned long)up_check_tcbstack(tcb),
#endif
(unsigned long)tcb->adj_stack_size
#ifdef CONFIG_STACK_COLORATION
, stack_filled / 10, stack_filled % 10,
(stack_filled >= 10 * 80 ? '!' : ' ')
, stack_filled / 10, stack_filled % 10
, (stack_filled >= 10 * 80 ? '!' : ' ')
#endif
#ifdef CONFIG_SCHED_CPULOAD
, intpart, fracpart

View File

@ -116,10 +116,10 @@ static void xtensa_dump_task(struct tcb_s *tcb, void *arg)
#ifdef CONFIG_SMP
" %4d"
#endif
" %7lu"
#ifdef CONFIG_STACK_COLORATION
" %7lu"
#endif
" %7lu"
#ifdef CONFIG_STACK_COLORATION
" %3" PRId32 ".%1" PRId32 "%%%c"
#endif
@ -127,21 +127,21 @@ static void xtensa_dump_task(struct tcb_s *tcb, void *arg)
" %3" PRId32 ".%01" PRId32 "%%"
#endif
#if CONFIG_TASK_NAME_SIZE > 0
" %s %s\n",
" %s %s\n"
#else
" %s\n",
" %s\n"
#endif
tcb->pid, tcb->sched_priority,
, tcb->pid, tcb->sched_priority
#ifdef CONFIG_SMP
tcb->cpu,
, tcb->cpu
#endif
, (unsigned long)tcb->adj_stack_size
#ifdef CONFIG_STACK_COLORATION
, (unsigned long)up_check_tcbstack(tcb)
#endif
#ifdef CONFIG_STACK_COLORATION
(unsigned long)up_check_tcbstack(tcb),
#endif
(unsigned long)tcb->adj_stack_size
#ifdef CONFIG_STACK_COLORATION
, stack_filled / 10, stack_filled % 10,
(stack_filled >= 10 * 80 ? '!' : ' ')
, stack_filled / 10, stack_filled % 10
, (stack_filled >= 10 * 80 ? '!' : ' ')
#endif
#ifdef CONFIG_SCHED_CPULOAD
, intpart, fracpart