Changeset 528acda in mainline
- Timestamp:
- 2012-02-26T15:25:20Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e04bfbf0
- Parents:
- 8271ae37
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/mkexfat/mkexfat.c
r8271ae37 r528acda 316 316 */ 317 317 static int 318 ebs_write(service_id_t service_id, exfat_cfg_t *cfg, int base, uint32_t *chksum) 318 ebs_write(service_id_t service_id, exfat_cfg_t *cfg, int base, 319 uint32_t *chksum) 319 320 { 320 321 uint32_t *ebs = calloc(cfg->sector_size, sizeof(uint8_t)); … … 636 637 } 637 638 638 checksum = ((checksum << 31) | (checksum >> 1)) + octets[index]; 639 checksum = ((checksum << 31) | (checksum >> 1)) + 640 octets[index]; 639 641 } 640 642 … … 649 651 uint8_t const *octets = (uint8_t *) data; 650 652 651 for (index = 0; index < nbytes; ++index) 652 *checksum = ((*checksum << 31) | (*checksum >> 1)) + octets[index]; 653 for (index = 0; index < nbytes; ++index) { 654 *checksum = ((*checksum << 31) | (*checksum >> 1)) + 655 octets[index]; 656 } 653 657 } 654 658 … … 742 746 div_round_up(cfg.bitmap_size, cfg.cluster_size)); 743 747 if (rc != EOK) { 744 printf(NAME ": Error, failed to allocate clusters for bitmap.\n"); 748 printf(NAME ": Error, failed to allocate" \ 749 " clusters for bitmap.\n"); 745 750 return 2; 746 751 } … … 754 759 div_round_up(sizeof(upcase_table), cfg.cluster_size)); 755 760 if (rc != EOK) { 756 printf(NAME ":Error, failed to allocate clusters foe the upcase table.\n"); 761 printf(NAME ":Error, failed to allocate clusters" \ 762 " for the upcase table.\n"); 757 763 return 2; 758 764 } … … 764 770 rc = fat_allocate_clusters(service_id, &cfg, next_cls, 1); 765 771 if (rc != EOK) { 766 printf(NAME ": Error, failed to allocate cluster for the root dentry.\n"); 772 printf(NAME ": Error, failed to allocate cluster" \ 773 " for the root dentry.\n"); 767 774 return 2; 768 775 } … … 779 786 rc = upcase_table_write(service_id, &cfg); 780 787 if (rc != EOK) { 781 printf(NAME ": Error, failed to write the upcase table to disk.\n"); 788 printf(NAME ": Error, failed to write the" \ 789 " upcase table to disk.\n"); 782 790 return 2; 783 791 }
Note:
See TracChangeset
for help on using the changeset viewer.