Changes in kernel/generic/src/console/cmd.c [b2fa1204:2f33fbc] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/cmd.c
rb2fa1204 r2f33fbc 45 45 #include <console/kconsole.h> 46 46 #include <print.h> 47 #include <log.h>48 47 #include <panic.h> 49 48 #include <typedefs.h> … … 640 639 for (i = 0; basic_commands[i]; i++) { 641 640 if (!cmd_register(basic_commands[i])) { 642 log(LF_OTHER, LVL_ERROR, 643 "Cannot register command %s", 641 printf("Cannot register command %s\n", 644 642 basic_commands[i]->name); 645 643 } … … 658 656 659 657 size_t len = 0; 660 list_foreach(cmd_list, link, cmd_info_t, hlp) { 658 list_foreach(cmd_list, cur) { 659 cmd_info_t *hlp; 660 hlp = list_get_instance(cur, cmd_info_t, link); 661 661 662 spinlock_lock(&hlp->lock); 662 663 if (str_length(hlp->name) > len) … … 667 668 unsigned int _len = (unsigned int) len; 668 669 if ((_len != len) || (((int) _len) < 0)) { 669 log(LF_OTHER, LVL_ERROR, "Command length overflow");670 printf("Command length overflow\n"); 670 671 return 1; 671 672 } 672 673 673 list_foreach(cmd_list, link, cmd_info_t, hlp) { 674 list_foreach(cmd_list, cur) { 675 cmd_info_t *hlp; 676 hlp = list_get_instance(cur, cmd_info_t, link); 677 674 678 spinlock_lock(&hlp->lock); 675 679 printf("%-*s %s\n", _len, hlp->name, hlp->description); … … 908 912 spinlock_lock(&cmd_lock); 909 913 910 list_foreach(cmd_list, link, cmd_info_t, hlp) { 914 list_foreach(cmd_list, cur) { 915 cmd_info_t *hlp; 916 917 hlp = list_get_instance(cur, cmd_info_t, link); 911 918 spinlock_lock(&hlp->lock); 912 919
Note:
See TracChangeset
for help on using the changeset viewer.