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 2015/12/02 23:24:22 UTC
incubator-mynewt-larva git commit: Add '\n' to end of output when
printing task info.
Repository: incubator-mynewt-larva
Updated Branches:
refs/heads/master e60c0b453 -> 4c1031604
Add '\n' to end of output when printing task info.
Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/4c103160
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/4c103160
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/4c103160
Branch: refs/heads/master
Commit: 4c103160456723791bcdc496ea52a40221fb933b
Parents: e60c0b4
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Wed Dec 2 14:22:10 2015 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Wed Dec 2 14:22:10 2015 -0800
----------------------------------------------------------------------
libs/os/src/os_info.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/4c103160/libs/os/src/os_info.c
----------------------------------------------------------------------
diff --git a/libs/os/src/os_info.c b/libs/os/src/os_info.c
index ebb6f12..2387cdd 100644
--- a/libs/os/src/os_info.c
+++ b/libs/os/src/os_info.c
@@ -69,7 +69,7 @@ shell_os_tasks_display(int argc, char **argv)
name = NULL;
found = 0;
- if (argv[1] != NULL && strcmp(argv[1], "")) {
+ if (argc > 1 && strcmp(argv[1], "")) {
name = argv[1];
}
@@ -95,7 +95,7 @@ shell_os_tasks_display(int argc, char **argv)
}
console_printf(" %s (prio: %u, nw: %u, flags: 0x%x, "
- "ssize: %u, cswcnt: %lu, tot_run_time: %ums)",
+ "ssize: %u, cswcnt: %lu, tot_run_time: %ums)\n",
info[i].oti_name,
info[i].oti_prio, info[i].oti_next_wakeup, info[i].oti_flags,
info[i].oti_stack_size,