git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1702 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
gdisirio 2010-03-03 10:51:59 +00:00
parent e526c3a9a5
commit 943389a558
1 changed files with 3 additions and 2 deletions

View File

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