Changeset 1433ecda in mainline for uspace/drv/block/usbmast


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/drv/block/usbmast
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/block/usbmast/bo_trans.c

    r47b2d7e3 r1433ecda  
    116116                usb_pipe_clear_halt(
    117117                    usb_device_get_default_pipe(mfun->mdev->usb_dev), dpipe);
    118         } else if (rc != EOK) {
     118        } else if (rc != EOK) {
    119119                usb_log_error("Failed to transfer data: %s", str_error(rc));
    120120                return EIO;
     
    141141        if (csw.dCSWTag != tag) {
    142142                usb_log_error("Received CSW with incorrect tag. (expected: %"
    143                     PRIX32" received: %"PRIx32, tag, csw.dCSWTag);
     143                    PRIX32 " received: %" PRIx32, tag, csw.dCSWTag);
    144144                return EIO;
    145145        }
  • uspace/drv/block/usbmast/main.c

    r47b2d7e3 r1433ecda  
    179179        usb_log_debug("Get LUN count...");
    180180        mdev->lun_count = usb_masstor_get_lun_count(mdev);
    181         mdev->luns = calloc(mdev->lun_count, sizeof(ddf_fun_t*));
     181        mdev->luns = calloc(mdev->lun_count, sizeof(ddf_fun_t *));
    182182        if (mdev->luns == NULL) {
    183183                usb_log_error("Failed allocating luns table.");
  • uspace/drv/block/usbmast/scsi_ms.c

    r47b2d7e3 r1433ecda  
    196196        if (cmd.rcvd_size < SCSI_STD_INQUIRY_DATA_MIN_SIZE) {
    197197                usb_log_error("SCSI Inquiry response too short (%zu).",
    198                      cmd.rcvd_size);
     198                    cmd.rcvd_size);
    199199                return EIO;
    200200        }
     
    306306        if (cmd.rcvd_size < sizeof(data)) {
    307307                usb_log_error("SCSI Read Capacity response too short (%zu).",
    308                      cmd.rcvd_size);
     308                    cmd.rcvd_size);
    309309                return EIO;
    310310        }
     
    349349        rc = usbmast_run_cmd(mfun, &cmd);
    350350
    351         if (rc != EOK) {
     351        if (rc != EOK) {
    352352                usb_log_error("Read (10) transport failed, device %s: %s.",
    353353                    usb_device_get_name(mfun->mdev->usb_dev), str_error(rc));
Note: See TracChangeset for help on using the changeset viewer.