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:
wangmingrong
2023-11-21 20:48:23 +08:00
committed by Petro Karashchenko
parent c30583dda4
commit c2597504e0

View File

@@ -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