Changeset 828aa05 in mainline
- Timestamp:
- 2007-02-05T14:15:23Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8ecb3067
- Parents:
- 093752c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/cmd.c
r093752c r828aa05 526 526 int cmd_symaddr(cmd_arg_t *argv) 527 527 { 528 symtab_print_search( argv->buffer);528 symtab_print_search((char *) argv->buffer); 529 529 530 530 return 1; … … 544 544 #endif 545 545 546 symaddr = get_symbol_addr( argv->buffer);546 symaddr = get_symbol_addr((char *) argv->buffer); 547 547 if (!symaddr) 548 548 printf("Symbol %s not found.\n", argv->buffer); 549 549 else if (symaddr == (uintptr_t) -1) { 550 symtab_print_search( argv->buffer);550 symtab_print_search((char *) argv->buffer); 551 551 printf("Duplicate symbol, be more specific.\n"); 552 552 } else { … … 580 580 #endif 581 581 582 symaddr = get_symbol_addr( argv->buffer);582 symaddr = get_symbol_addr((char *) argv->buffer); 583 583 if (!symaddr) 584 584 printf("Symbol %s not found.\n", argv->buffer); 585 585 else if (symaddr == (uintptr_t) -1) { 586 symtab_print_search( argv->buffer);586 symtab_print_search((char *) argv->buffer); 587 587 printf("Duplicate symbol, be more specific.\n"); 588 588 } else { … … 618 618 #endif 619 619 620 symaddr = get_symbol_addr( argv->buffer);620 symaddr = get_symbol_addr((char *) argv->buffer); 621 621 if (!symaddr) 622 622 printf("Symbol %s not found.\n", argv->buffer); 623 623 else if (symaddr == (uintptr_t) -1) { 624 symtab_print_search( argv->buffer);624 symtab_print_search((char *) argv->buffer); 625 625 printf("Duplicate symbol, be more specific.\n"); 626 626 } else { … … 657 657 #endif 658 658 659 symaddr = get_symbol_addr( argv->buffer);659 symaddr = get_symbol_addr((char *) argv->buffer); 660 660 if (!symaddr) 661 661 printf("Symbol %s not found.\n", argv->buffer); 662 662 else if (symaddr == (uintptr_t) -1) { 663 symtab_print_search( argv->buffer);663 symtab_print_search((char *) argv->buffer); 664 664 printf("Duplicate symbol, be more specific.\n"); 665 665 } else { … … 719 719 720 720 if (((char *)argv->buffer)[0] == '*') { 721 addr = (uint32_t *) get_symbol_addr( argv->buffer+1);721 addr = (uint32_t *) get_symbol_addr((char *) argv->buffer + 1); 722 722 pointer = true; 723 } else if (((char *) argv->buffer)[0] >= '0' &&723 } else if (((char *) argv->buffer)[0] >= '0' && 724 724 ((char *)argv->buffer)[0] <= '9') 725 725 addr = (uint32_t *)atoi((char *)argv->buffer); 726 726 else 727 addr = (uint32_t *)get_symbol_addr( argv->buffer);727 addr = (uint32_t *)get_symbol_addr((char *) argv->buffer); 728 728 729 729 if (!addr) 730 730 printf("Symbol %s not found.\n", argv->buffer); 731 731 else if (addr == (uint32_t *) -1) { 732 symtab_print_search( argv->buffer);732 symtab_print_search((char *) argv->buffer); 733 733 printf("Duplicate symbol, be more specific.\n"); 734 734 } else { … … 925 925 return true; 926 926 927 uint64_t *data = malloc(sizeof(uint64_t) * cnt, 0);927 uint64_t *data = (uint64_t *) malloc(sizeof(uint64_t) * cnt, 0); 928 928 if (data == NULL) { 929 929 printf("Error allocating memory for statistics\n"); … … 991 991 test_t *test; 992 992 993 if (strcmp( argv->buffer, "*") == 0) {993 if (strcmp((char *) argv->buffer, "*") == 0) { 994 994 for (test = tests; test->name != NULL; test++) { 995 995 if (test->safe) { … … 1003 1003 1004 1004 for (test = tests; test->name != NULL; test++) { 1005 if (strcmp(test->name, argv->buffer) == 0) {1005 if (strcmp(test->name, (char *) argv->buffer) == 0) { 1006 1006 fnd = true; 1007 1007 run_test(test); … … 1031 1031 1032 1032 for (test = tests; test->name != NULL; test++) { 1033 if (strcmp(test->name, argv->buffer) == 0) {1033 if (strcmp(test->name, (char *) argv->buffer) == 0) { 1034 1034 fnd = true; 1035 1035
Note:
See TracChangeset
for help on using the changeset viewer.