> compile NEMU
ysyx_22040000 李心杨 Linux calcite 6.1.69 #1-NixOS SMP PREEMPT_DYNAMIC Wed Dec 20 16:00:29 UTC 2023 x86_64 GNU/Linux 20:21:36 up 3 days 19:22, 2 users, load average: 0.58, 0.47, 0.51
This commit is contained in:
parent
e7a70564c0
commit
7c0812eceb
1 changed files with 1 additions and 2 deletions
|
@ -137,7 +137,7 @@ static int cmd_info(char *args) {
|
|||
static int cmd_help_print(char *args, struct CMDTable* cur_cmd_table) {
|
||||
int i;
|
||||
printf("Subcommand \n");
|
||||
char *arg = strtok(NULL, " ");
|
||||
char *arg = strtok(args, " ");
|
||||
if (arg == NULL) {
|
||||
return -1;
|
||||
} else {
|
||||
|
@ -145,7 +145,6 @@ static int cmd_help_print(char *args, struct CMDTable* cur_cmd_table) {
|
|||
if (strcmp(arg, cur_cmd_table[i].name) == 0) {
|
||||
printf("%s ", cur_cmd_table[i].name);
|
||||
if (cmd_help_print(args, cur_cmd_table->subcommand) == -1) {
|
||||
// Last avaliable command
|
||||
printf("-- %s\n", cur_cmd_table[i].description);
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue