Changes in kernel/generic/src/console/cmd.c [feeac0d:2f33fbc] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/cmd.c
rfeeac0d r2f33fbc 656 656 657 657 size_t len = 0; 658 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 659 662 spinlock_lock(&hlp->lock); 660 663 if (str_length(hlp->name) > len) … … 669 672 } 670 673 671 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 672 678 spinlock_lock(&hlp->lock); 673 679 printf("%-*s %s\n", _len, hlp->name, hlp->description); … … 906 912 spinlock_lock(&cmd_lock); 907 913 908 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); 909 918 spinlock_lock(&hlp->lock); 910 919
Note:
See TracChangeset
for help on using the changeset viewer.