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