git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1702 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
e526c3a9a5
commit
943389a558
|
@ -72,8 +72,9 @@ static void cmd_threads(BaseChannel *chp, int argc, char *argv[]) {
|
|||
shellPrintLine(chp, " addr stack prio refs state time");
|
||||
tp = chRegFirstThread();
|
||||
do {
|
||||
siprintf(buf, "%8p %8p %4u %4i %9s %u",
|
||||
tp, tp->p_ctx.sp, (unsigned int)tp->p_prio, tp->p_refs - 1,
|
||||
siprintf(buf, "%8lx %8lx %4u %4i %9s %u",
|
||||
(uint32_t)tp, (uint32_t)tp->p_ctx.sp,
|
||||
(unsigned int)tp->p_prio, tp->p_refs - 1,
|
||||
states[tp->p_state], (unsigned int)tp->p_time);
|
||||
shellPrintLine(chp, buf);
|
||||
tp = chRegNextThread(tp);
|
||||
|
|
Loading…
Reference in New Issue