mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-21 14:42:20 +08:00
nsh: Fix PS printing misalignment
When the stack is allocated in megabytes, printing seven bits of ps will not align Signed-off-by: wangmingrong <wangmingrong@xiaomi.com>
This commit is contained in:

committed by
Petro Karashchenko

parent
c30583dda4
commit
c2597504e0
@@ -534,10 +534,10 @@ static int ps_callback(FAR struct nsh_vtbl_s *vtbl, FAR const char *dirpath,
|
|||||||
"%08lu "
|
"%08lu "
|
||||||
#endif
|
#endif
|
||||||
#ifdef PS_SHOW_STACKSIZE
|
#ifdef PS_SHOW_STACKSIZE
|
||||||
"%06lu "
|
"%07lu "
|
||||||
#endif
|
#endif
|
||||||
#ifdef PS_SHOW_STACKUSAGE
|
#ifdef PS_SHOW_STACKUSAGE
|
||||||
"%06lu "
|
"%07lu "
|
||||||
"%3lu.%lu%%%c "
|
"%3lu.%lu%%%c "
|
||||||
#endif
|
#endif
|
||||||
#ifdef NSH_HAVE_CPULOAD
|
#ifdef NSH_HAVE_CPULOAD
|
||||||
|
Reference in New Issue
Block a user