Ignore:
File:
1 edited

Legend:

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

    rdf58e44 r40fb017  
    111111
    112112#ifdef CONFIG_TEST
     113
    113114/* Data and methods for 'test' command. */
    114115static char test_buf[MAX_CMDLINE + 1];
     
    148149        .argv = bench_argv
    149150};
    150 #endif
     151
     152#endif /* CONFIG_TEST */
    151153
    152154/* Data and methods for 'description' command. */
     
    383385};
    384386
     387#ifdef CONFIG_UDEBUG
     388
    385389/* Data and methods for 'btrace' command */
    386390static int cmd_btrace(cmd_arg_t *argv);
     
    395399        .argv = &btrace_argv
    396400};
     401
     402#endif /* CONFIG_UDEBUG */
    397403
    398404static int cmd_sched(cmd_arg_t *argv);
     
    492498
    493499static cmd_info_t *basic_commands[] = {
    494         &btrace_info,
    495500        &call0_info,
    496501        &mcall0_info,
     
    523528        &bench_info,
    524529#endif
     530#ifdef CONFIG_UDEBUG
     531        &btrace_info,
     532#endif
    525533        NULL
    526534};
     
    545553        for (i = 0; basic_commands[i]; i++) {
    546554                cmd_initialize(basic_commands[i]);
    547                 if (!cmd_register(basic_commands[i]))
    548                         printf("Cannot register command %s\n", basic_commands[i]->name);
     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                }
    549562        }
    550563}
     
    980993}
    981994
     995#ifdef CONFIG_UDEBUG
     996
    982997/** Command for printing thread stack trace
    983998 *
     
    9921007        return 1;
    9931008}
     1009
     1010#endif /* CONFIG_UDEBUG */
    9941011
    9951012/** Command for printing scheduler information
Note: See TracChangeset for help on using the changeset viewer.