Changeset 1433ecda in mainline for uspace/srv/bd


Ignore:
Timestamp:
2018-04-04T15:42:37Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

Location:
uspace/srv/bd
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/file_bd/file_bd.c

    r47b2d7e3 r1433ecda  
    9797        block_size = DEFAULT_BLOCK_SIZE;
    9898
    99         ++argv; --argc;
     99        ++argv;
     100        --argc;
    100101        while (*argv != NULL && (*argv)[0] == '-') {
    101102                /* Option */
     
    113114                                return -1;
    114115                        }
    115                         ++argv; --argc;
     116                        ++argv;
     117                        --argc;
    116118                } else {
    117119                        printf("Invalid option '%s'.\n", *argv);
     
    119121                        return -1;
    120122                }
    121                 ++argv; --argc;
     123                ++argv;
     124                --argc;
    122125        }
    123126
  • uspace/srv/bd/sata_bd/sata_bd.c

    r47b2d7e3 r1433ecda  
    9797        /* If device is SATA, add device to the disk array. */
    9898        disk[disk_count].sess = ahci_get_sess(funh, &disk[disk_count].dev_name);
    99         if(disk[disk_count].sess != NULL) {
     99        if (disk[disk_count].sess != NULL) {
    100100
    101101                ahci_get_sata_device_name(disk[disk_count].sess,
     
    113113                printf("Device %s - %s , blocks: %lu, block_size: %lu\n",
    114114                    disk[disk_count].dev_name, disk[disk_count].sata_dev_name,
    115                             (long unsigned int) disk[disk_count].blocks,
    116                                 (long unsigned int) disk[disk_count].block_size);
     115                    (long unsigned int) disk[disk_count].blocks,
     116                    (long unsigned int) disk[disk_count].block_size);
    117117
    118118                ++disk_count;
     
    268268        }
    269269
    270         for(int i = 0; i < disk_count; i++) {
     270        for (int i = 0; i < disk_count; i++) {
    271271                char name[1024];
    272272                snprintf(name, 1024, "%s/%s", NAMESPACE, disk[i].dev_name);
  • uspace/srv/bd/vbd/disk.c

    r47b2d7e3 r1433ecda  
    181181
    182182        list_foreach(vbds_disks, ldisks, vbds_disk_t, disk)
    183                 disk->present = false;
     183            disk->present = false;
    184184
    185185        for (i = 0; i < count; i++) {
Note: See TracChangeset for help on using the changeset viewer.