This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new c2597504e nsh: Fix PS printing misalignment
c2597504e is described below
commit c2597504e01992fd5a39aa3bff3a93a807438293
Author: wangmingrong <[email protected]>
AuthorDate: Tue Nov 21 20:48:23 2023 +0800
nsh: Fix PS printing misalignment
When the stack is allocated in megabytes, printing seven bits of ps will
not align
Signed-off-by: wangmingrong <[email protected]>
---
nshlib/nsh_proccmds.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nshlib/nsh_proccmds.c b/nshlib/nsh_proccmds.c
index 859d0b808..ab02f38f5 100644
--- a/nshlib/nsh_proccmds.c
+++ b/nshlib/nsh_proccmds.c
@@ -534,10 +534,10 @@ static int ps_callback(FAR struct nsh_vtbl_s *vtbl, FAR
const char *dirpath,
"%08lu "
#endif
#ifdef PS_SHOW_STACKSIZE
- "%06lu "
+ "%07lu "
#endif
#ifdef PS_SHOW_STACKUSAGE
- "%06lu "
+ "%07lu "
"%3lu.%lu%%%c "
#endif
#ifdef NSH_HAVE_CPULOAD