Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 528acda in mainline


Ignore:
Timestamp:
2012-02-26T15:25:20Z (10 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
e04bfbf
Parents:
8271ae37
Message:

mkexfat: cstyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/mkexfat/mkexfat.c

    r8271ae37 r528acda  
    316316 */
    317317static int
    318 ebs_write(service_id_t service_id, exfat_cfg_t *cfg, int base, uint32_t *chksum)
     318ebs_write(service_id_t service_id, exfat_cfg_t *cfg, int base,
     319    uint32_t *chksum)
    319320{
    320321        uint32_t *ebs = calloc(cfg->sector_size, sizeof(uint8_t));
     
    636637                }
    637638
    638                 checksum = ((checksum << 31) | (checksum >> 1)) + octets[index];
     639                checksum = ((checksum << 31) | (checksum >> 1)) +
     640                    octets[index];
    639641        }
    640642
     
    649651        uint8_t const *octets = (uint8_t *) data;
    650652
    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        }
    653657}
    654658
     
    742746            div_round_up(cfg.bitmap_size, cfg.cluster_size));
    743747        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");
    745750                return 2;
    746751        }
     
    754759            div_round_up(sizeof(upcase_table), cfg.cluster_size));
    755760        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");
    757763                return 2;
    758764        }
     
    764770        rc = fat_allocate_clusters(service_id, &cfg, next_cls, 1);
    765771        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");
    767774                return 2;
    768775        }
     
    779786        rc = upcase_table_write(service_id, &cfg);
    780787        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");
    782790                return 2;
    783791        }
Note: See TracChangeset for help on using the changeset viewer.