Changeset f7a55f9 in mainline for uspace/drv/bus/usb/usbmast/main.c
- Timestamp:
- 2011-07-05T10:43:21Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5e2aa83, bee37cf
- Parents:
- b5085a7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/usbmast/main.c
rb5085a7 rf7a55f9 138 138 "block_size=%" PRIu32 "\n", nblocks, block_size); 139 139 140 usb_log_info("Doing test read of block 0.\n"); 141 static uint8_t bdata[512]; 142 143 rc = usbmast_read(dev, 0, 1, 512, &bdata); 144 if (rc != EOK) { 145 usb_log_warning("Failed to read block 0, device `%s': %s.\n", 146 dev->ddf_dev->name, str_error(rc)); 147 return EOK; 148 } 149 150 usb_log_info("Requesting sense data.\n"); 151 static scsi_sense_data_t sdata; 152 153 rc = usbmast_request_sense(dev, &sdata, sizeof(sdata)); 154 if (rc != EOK) { 155 usb_log_warning("Failed to get sense data, device `%s': %s.\n", 156 dev->ddf_dev->name, str_error(rc)); 157 return EOK; 158 } 159 140 160 return EOK; 141 161 }
Note:
See TracChangeset
for help on using the changeset viewer.