Changeset 1433ecda in mainline for uspace/drv/block/usbmast
- Timestamp:
- 2018-04-04T15:42:37Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- Location:
- uspace/drv/block/usbmast
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/usbmast/bo_trans.c
r47b2d7e3 r1433ecda 116 116 usb_pipe_clear_halt( 117 117 usb_device_get_default_pipe(mfun->mdev->usb_dev), dpipe); 118 118 } else if (rc != EOK) { 119 119 usb_log_error("Failed to transfer data: %s", str_error(rc)); 120 120 return EIO; … … 141 141 if (csw.dCSWTag != tag) { 142 142 usb_log_error("Received CSW with incorrect tag. (expected: %" 143 PRIX32 " received: %"PRIx32, tag, csw.dCSWTag);143 PRIX32 " received: %" PRIx32, tag, csw.dCSWTag); 144 144 return EIO; 145 145 } -
uspace/drv/block/usbmast/main.c
r47b2d7e3 r1433ecda 179 179 usb_log_debug("Get LUN count..."); 180 180 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 *)); 182 182 if (mdev->luns == NULL) { 183 183 usb_log_error("Failed allocating luns table."); -
uspace/drv/block/usbmast/scsi_ms.c
r47b2d7e3 r1433ecda 196 196 if (cmd.rcvd_size < SCSI_STD_INQUIRY_DATA_MIN_SIZE) { 197 197 usb_log_error("SCSI Inquiry response too short (%zu).", 198 198 cmd.rcvd_size); 199 199 return EIO; 200 200 } … … 306 306 if (cmd.rcvd_size < sizeof(data)) { 307 307 usb_log_error("SCSI Read Capacity response too short (%zu).", 308 308 cmd.rcvd_size); 309 309 return EIO; 310 310 } … … 349 349 rc = usbmast_run_cmd(mfun, &cmd); 350 350 351 351 if (rc != EOK) { 352 352 usb_log_error("Read (10) transport failed, device %s: %s.", 353 353 usb_device_get_name(mfun->mdev->usb_dev), str_error(rc));
Note:
See TracChangeset
for help on using the changeset viewer.