You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by vi...@apache.org on 2020/12/11 21:07:44 UTC
[mynewt-newtmgr] branch master updated: taskstat: Add tab character
after the task's name
This is an automated email from the ASF dual-hosted git repository.
vipulrahane pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newtmgr.git
The following commit(s) were added to refs/heads/master by this push:
new 59848a5 taskstat: Add tab character after the task's name
new c56797e Merge pull request #179 from vrahane/newtmgr_taskstat_format_fix
59848a5 is described below
commit 59848a51e84a12ca61aafa5222d974bdeb8db298
Author: Vipul Rahane <vi...@proxy.com>
AuthorDate: Fri Dec 11 00:49:36 2020 -0800
taskstat: Add tab character after the task's name
- There was a space earlier and if the task name was bigger,
it owuld cause formatting issues
---
newtmgr/cli/taskstat.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/newtmgr/cli/taskstat.go b/newtmgr/cli/taskstat.go
index 3e25913..06af0ad 100644
--- a/newtmgr/cli/taskstat.go
+++ b/newtmgr/cli/taskstat.go
@@ -56,12 +56,12 @@ func taskStatRunCmd(cmd *cobra.Command, args []string) {
}
sort.Strings(names)
- fmt.Printf(" %8s %3s %3s %8s %8s %8s %8s %8s %8s\n",
+ fmt.Printf(" %8s\t%3s %3s %8s %8s %8s %8s %8s %8s\n",
"task", "pri", "tid", "runtime", "csw", "stksz",
"stkuse", "last_checkin", "next_checkin")
for _, n := range names {
t := sres.Rsp.Tasks[n]
- fmt.Printf(" %8s %3d %3d %8d %8d %8d %8d %8d %8d\n",
+ fmt.Printf(" %8s\t%3d %3d %8d %8d %8d %8d %8d %8d\n",
n,
t["prio"],
t["tid"],