Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/mips32/src/debugger.c

    r9d58539 r193d280c  
    3939#include <console/cmd.h>
    4040#include <print.h>
     41#include <log.h>
    4142#include <panic.h>
    4243#include <arch.h>
     
    9697        .argv = adde_argv
    9798};
     99#endif
    98100
    99101static struct {
     
    146148}
    147149
     150#ifdef CONFIG_KCONSOLE
     151
    148152/** Add new breakpoint to table
    149153 *
     
    284288 *
    285289 */
    286 void debugger_init()
     290void debugger_init(void)
    287291{
    288292        unsigned int i;
     
    294298        cmd_initialize(&bkpts_info);
    295299        if (!cmd_register(&bkpts_info))
    296                 printf("Cannot register command %s\n", bkpts_info.name);
     300                log(LF_OTHER, LVL_WARN, "Cannot register command %s",
     301                    bkpts_info.name);
    297302       
    298303        cmd_initialize(&delbkpt_info);
    299304        if (!cmd_register(&delbkpt_info))
    300                 printf("Cannot register command %s\n", delbkpt_info.name);
     305                log(LF_OTHER, LVL_WARN, "Cannot register command %s",
     306                    delbkpt_info.name);
    301307       
    302308        cmd_initialize(&addbkpt_info);
    303309        if (!cmd_register(&addbkpt_info))
    304                 printf("Cannot register command %s\n", addbkpt_info.name);
     310                log(LF_OTHER, LVL_WARN, "Cannot register command %s",
     311                    addbkpt_info.name);
    305312       
    306313        cmd_initialize(&addbkpte_info);
    307314        if (!cmd_register(&addbkpte_info))
    308                 printf("Cannot register command %s\n", addbkpte_info.name);
     315                log(LF_OTHER, LVL_WARN, "Cannot register command %s",
     316                    addbkpte_info.name);
    309317#endif /* CONFIG_KCONSOLE */
    310318}
Note: See TracChangeset for help on using the changeset viewer.