Fix NSH PS command: If there are not argument, it would print garbage for argument list
This commit is contained in:
parent
dd8d40dabd
commit
00545910f0
@ -290,7 +290,6 @@ static void ps_task(FAR struct tcb_s *tcb, FAR void *arg)
|
|||||||
if (ttcb->argv[1])
|
if (ttcb->argv[1])
|
||||||
{
|
{
|
||||||
nsh_output(vtbl, "%p", ttcb->argv[1]);
|
nsh_output(vtbl, "%p", ttcb->argv[1]);
|
||||||
}
|
|
||||||
|
|
||||||
/* Then any additional arguments */
|
/* Then any additional arguments */
|
||||||
|
|
||||||
@ -301,6 +300,7 @@ static void ps_task(FAR struct tcb_s *tcb, FAR void *arg)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
nsh_output(vtbl, ")\n");
|
nsh_output(vtbl, ")\n");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user