You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2016/10/28 22:43:19 UTC
[5/5] incubator-mynewt-core git commit: shell;
make task info display more like newtmgr shows it.
shell; make task info display more like newtmgr shows it.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/45f74a70
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/45f74a70
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/45f74a70
Branch: refs/heads/develop
Commit: 45f74a703d92d8e478072e163ba378f5eaaa8dfc
Parents: dc038cc
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Fri Oct 28 14:12:14 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Fri Oct 28 15:41:31 2016 -0700
----------------------------------------------------------------------
sys/shell/src/shell_os.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/45f74a70/sys/shell/src/shell_os.c
----------------------------------------------------------------------
diff --git a/sys/shell/src/shell_os.c b/sys/shell/src/shell_os.c
index dbf85b8..aa20419 100644
--- a/sys/shell/src/shell_os.c
+++ b/sys/shell/src/shell_os.c
@@ -47,6 +47,9 @@ shell_os_tasks_display_cmd(int argc, char **argv)
console_printf("Tasks: \n");
prev_task = NULL;
+ console_printf(" %8s %3s %3s %8s %8s %8s %8s %8s %8s %3s\n",
+ "task", "pri", "tid", "runtime", "csw", "stksz", "stkuse",
+ "lcheck", "ncheck", "flg");
while (1) {
prev_task = os_task_info_get_next(prev_task, &oti);
if (prev_task == NULL) {
@@ -61,14 +64,12 @@ shell_os_tasks_display_cmd(int argc, char **argv)
}
}
- console_printf(" %s (prio: %u, tid: %u, lcheck: %lu, ncheck: %lu, "
- "flags: 0x%x, ssize: %u, susage: %u, cswcnt: %lu, "
- "tot_run_time: %lums)\n",
+ console_printf(" %8s %3u %3u %8lu %8lu %8u %8u %8lu %8lu %3x\n",
oti.oti_name, oti.oti_prio, oti.oti_taskid,
+ (unsigned long)oti.oti_runtime, (unsigned long)oti.oti_cswcnt,
+ oti.oti_stksize, oti.oti_stkusage,
(unsigned long)oti.oti_last_checkin,
- (unsigned long)oti.oti_next_checkin, oti.oti_flags,
- oti.oti_stksize, oti.oti_stkusage, (unsigned long)oti.oti_cswcnt,
- (unsigned long)oti.oti_runtime);
+ (unsigned long)oti.oti_next_checkin, oti.oti_flags);
}