Changes in kernel/generic/src/console/cmd.c [21881bd8:f9061b4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/cmd.c
r21881bd8 rf9061b4 573 573 spinlock_lock(&cmd_lock); 574 574 575 link_t *cur; 575 576 size_t len = 0; 576 list_foreach(cmd_list, cur) {577 for (cur = cmd_head.next; cur != &cmd_head; cur = cur->next) { 577 578 cmd_info_t *hlp; 578 579 hlp = list_get_instance(cur, cmd_info_t, link); … … 590 591 } 591 592 592 list_foreach(cmd_list, cur) {593 for (cur = cmd_head.next; cur != &cmd_head; cur = cur->next) { 593 594 cmd_info_t *hlp; 594 595 hlp = list_get_instance(cur, cmd_info_t, link); … … 645 646 int cmd_desc(cmd_arg_t *argv) 646 647 { 648 link_t *cur; 649 647 650 spinlock_lock(&cmd_lock); 648 651 649 list_foreach(cmd_list, cur) {652 for (cur = cmd_head.next; cur != &cmd_head; cur = cur->next) { 650 653 cmd_info_t *hlp; 651 654 … … 1177 1180 /* Execute the test */ 1178 1181 test_quiet = true; 1179 const char * test_ret = test->entry();1182 const char *ret = test->entry(); 1180 1183 1181 1184 /* Update and read thread accounting */ … … 1185 1188 irq_spinlock_unlock(&TASK->lock, true); 1186 1189 1187 if ( test_ret != NULL) {1188 printf("%s\n", test_ret);1190 if (ret != NULL) { 1191 printf("%s\n", ret); 1189 1192 ret = false; 1190 1193 break;
Note:
See TracChangeset
for help on using the changeset viewer.