Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/cmd.c

    r40fb017 rdf58e44  
    111111
    112112#ifdef CONFIG_TEST
    113 
    114113/* Data and methods for 'test' command. */
    115114static char test_buf[MAX_CMDLINE + 1];
     
    149148        .argv = bench_argv
    150149};
    151 
    152 #endif /* CONFIG_TEST */
     150#endif
    153151
    154152/* Data and methods for 'description' command. */
     
    385383};
    386384
    387 #ifdef CONFIG_UDEBUG
    388 
    389385/* Data and methods for 'btrace' command */
    390386static int cmd_btrace(cmd_arg_t *argv);
     
    399395        .argv = &btrace_argv
    400396};
    401 
    402 #endif /* CONFIG_UDEBUG */
    403397
    404398static int cmd_sched(cmd_arg_t *argv);
     
    498492
    499493static cmd_info_t *basic_commands[] = {
     494        &btrace_info,
    500495        &call0_info,
    501496        &mcall0_info,
     
    528523        &bench_info,
    529524#endif
    530 #ifdef CONFIG_UDEBUG
    531         &btrace_info,
    532 #endif
    533525        NULL
    534526};
     
    553545        for (i = 0; basic_commands[i]; i++) {
    554546                cmd_initialize(basic_commands[i]);
    555         }
    556 
    557         for (i = 0; basic_commands[i]; i++) {
    558                 if (!cmd_register(basic_commands[i])) {
    559                         printf("Cannot register command %s\n",
    560                             basic_commands[i]->name);
    561                 }
     547                if (!cmd_register(basic_commands[i]))
     548                        printf("Cannot register command %s\n", basic_commands[i]->name);
    562549        }
    563550}
     
    993980}
    994981
    995 #ifdef CONFIG_UDEBUG
    996 
    997982/** Command for printing thread stack trace
    998983 *
     
    1007992        return 1;
    1008993}
    1009 
    1010 #endif /* CONFIG_UDEBUG */
    1011994
    1012995/** Command for printing scheduler information
Note: See TracChangeset for help on using the changeset viewer.