Skip to content

Commit

Permalink
nsh: Fix PS printing misalignment
Browse files Browse the repository at this point in the history
When the stack is allocated in megabytes, printing seven bits of ps will not align

Signed-off-by: wangmingrong <wangmingrong@xiaomi.com>
  • Loading branch information
wangmingrong authored and pkarashchenko committed Oct 8, 2024
1 parent c30583d commit c259750
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nshlib/nsh_proccmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c259750

Please sign in to comment.