[finsh] Code cleanup.
This commit is contained in:
parent
cfbe17681e
commit
3dc91bf8ab
|
@ -297,8 +297,14 @@ FINSH_FUNCTION_EXPORT_ALIAS(cmd_netstat, __cmd_netstat, list the information of
|
||||||
int cmd_ps(int argc, char** argv)
|
int cmd_ps(int argc, char** argv)
|
||||||
{
|
{
|
||||||
extern long list_thread(void);
|
extern long list_thread(void);
|
||||||
|
extern int list_module(void);
|
||||||
list_thread();
|
|
||||||
|
#ifdef RT_USING_MODULE
|
||||||
|
if ((argc == 2) && (strcmp(argv[1], "-m") == 0))
|
||||||
|
list_module();
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
list_thread();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
FINSH_FUNCTION_EXPORT_ALIAS(cmd_ps, __cmd_ps, List threads in the system.);
|
FINSH_FUNCTION_EXPORT_ALIAS(cmd_ps, __cmd_ps, List threads in the system.);
|
||||||
|
|
Loading…
Reference in New Issue