Correct reference to thread prio in shell_cmd.c

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13970 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
cinsights 2020-12-20 04:13:33 +00:00
parent ea9c9860d8
commit f6e7aa1acd
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ static void cmd_threads(BaseSequentialStream *chp, int argc, char *argv[]) {
#endif
chprintf(chp, "%08lx %08lx %08lx %4lu %4lu %9s %12s" SHELL_NEWLINE_STR,
stklimit, (uint32_t)tp->ctx.sp, (uint32_t)tp,
(uint32_t)tp->refs - 1, (uint32_t)tp->prio, states[tp->state],
(uint32_t)tp->refs - 1, (uint32_t)tp->hdr.pqueue.prio, states[tp->state],
tp->name == NULL ? "" : tp->name);
tp = chRegNextThread(tp);
} while (tp != NULL);