You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "flyingfish89 (via GitHub)" <gi...@apache.org> on 2023/02/17 10:17:11 UTC
[GitHub] [nuttx] flyingfish89 commented on a diff in pull request #8556: sync ps/assert output
flyingfish89 commented on code in PR #8556:
URL: https://github.com/apache/nuttx/pull/8556#discussion_r1109573861
##########
sched/misc/assert.c:
##########
@@ -255,13 +271,29 @@ static void dump_task(FAR struct tcb_s *tcb, FAR void *arg)
group_argvstr(tcb, args, sizeof(args));
+ /* get the task_state */
+
+ nxsched_get_stateinfo(tcb, state, sizeof(state));
+ if ((s = strchr(state, ',')) != NULL)
+ {
+ *s = '\0';
+ snprintf(str, sizeof(str), "%s %s", state, s + 1);
Review Comment:
because i need change "waiting,mutex:9" -> "waiting mutex:9" to Keep it consistent with ps
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org