Rev 4327 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4327 | Rev 4581 | ||
---|---|---|---|
Line 511... | Line 511... | ||
511 | int cmd_help(cmd_arg_t *argv) |
511 | int cmd_help(cmd_arg_t *argv) |
512 | { |
512 | { |
513 | spinlock_lock(&cmd_lock); |
513 | spinlock_lock(&cmd_lock); |
514 | 514 | ||
515 | link_t *cur; |
515 | link_t *cur; |
516 | count_t len = 0; |
516 | size_t len = 0; |
517 | for (cur = cmd_head.next; cur != &cmd_head; cur = cur->next) { |
517 | for (cur = cmd_head.next; cur != &cmd_head; cur = cur->next) { |
518 | cmd_info_t *hlp; |
518 | cmd_info_t *hlp; |
519 | hlp = list_get_instance(cur, cmd_info_t, link); |
519 | hlp = list_get_instance(cur, cmd_info_t, link); |
520 | 520 | ||
521 | spinlock_lock(&hlp->lock); |
521 | spinlock_lock(&hlp->lock); |
Line 649... | Line 649... | ||
649 | /* |
649 | /* |
650 | * For each CPU, create a thread which will |
650 | * For each CPU, create a thread which will |
651 | * call the function. |
651 | * call the function. |
652 | */ |
652 | */ |
653 | 653 | ||
654 | count_t i; |
654 | size_t i; |
655 | for (i = 0; i < config.cpu_count; i++) { |
655 | for (i = 0; i < config.cpu_count; i++) { |
656 | if (!cpus[i].active) |
656 | if (!cpus[i].active) |
657 | continue; |
657 | continue; |
658 | 658 | ||
659 | thread_t *t; |
659 | thread_t *t; |
Line 968... | Line 968... | ||
968 | * |
968 | * |
969 | * return Always 1. |
969 | * return Always 1. |
970 | */ |
970 | */ |
971 | int cmd_tests(cmd_arg_t *argv) |
971 | int cmd_tests(cmd_arg_t *argv) |
972 | { |
972 | { |
973 | count_t len = 0; |
973 | size_t len = 0; |
974 | test_t *test; |
974 | test_t *test; |
975 | for (test = tests; test->name != NULL; test++) { |
975 | for (test = tests; test->name != NULL; test++) { |
976 | if (str_length(test->name) > len) |
976 | if (str_length(test->name) > len) |
977 | len = str_length(test->name); |
977 | len = str_length(test->name); |
978 | } |
978 | } |