File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -884,7 +884,7 @@ MSH_CMD_EXPORT(list_device, list device in system);
884884
885885long list (void )
886886{
887- rt_kprintf ("--Function List:\n" );
887+ rt_kprintf ("--Commands List:\n" );
888888 {
889889 struct finsh_syscall * index ;
890890 for (index = _syscall_table_begin ;
@@ -904,6 +904,6 @@ long list(void)
904904
905905 return 0 ;
906906}
907- MSH_CMD_EXPORT (list , list all symbol in system )
907+ MSH_CMD_EXPORT (list , list all commands in system )
908908
909909#endif /* RT_USING_FINSH */
Original file line number Diff line number Diff line change @@ -584,9 +584,7 @@ void msh_auto_complete(char *prefix)
584584 for (index = _syscall_table_begin ; index < _syscall_table_end ; FINSH_NEXT_SYSCALL (index ))
585585 {
586586 /* skip finsh shell function */
587- if (strncmp (index -> name , "__cmd_" , 6 ) != 0 ) continue ;
588-
589- cmd_name = (const char * ) & index -> name [6 ];
587+ cmd_name = (const char * ) index -> name ;
590588 if (strncmp (prefix , cmd_name , strlen (prefix )) == 0 )
591589 {
592590 if (min_length == 0 )
You can’t perform that action at this time.
0 commit comments