Changes in uspace/drv/block/usbmast/bo_trans.c [d5c1051:a1732929] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/usbmast/bo_trans.c
rd5c1051 ra1732929 90 90 str_error(rc)); 91 91 if (rc != EOK) { 92 usb_log_error("Bulk out write failed: %s \n", str_error(rc));92 usb_log_error("Bulk out write failed: %s", str_error(rc)); 93 93 return EIO; 94 94 } … … 154 154 case cbs_failed: 155 155 cmd->status = CMDS_FAILED; 156 usb_log_error("CBS Failed. \n");156 usb_log_error("CBS Failed."); 157 157 break; 158 158 case cbs_phase_error: 159 usb_log_error("CBS phase error. \n");159 usb_log_error("CBS phase error."); 160 160 rc = EIO; 161 161 break; 162 162 default: 163 usb_log_error("CBS other error. \n");163 usb_log_error("CBS other error."); 164 164 rc = EIO; 165 165 break; … … 168 168 const size_t residue = uint32_usb2host(csw.dCSWDataResidue); 169 169 if (residue > dbuf_size) { 170 usb_log_error("Residue > buffer size (%zu > %zu). \n",170 usb_log_error("Residue > buffer size (%zu > %zu).", 171 171 residue, dbuf_size); 172 172 return EIO; … … 228 228 * 229 229 * @param mfun Mass storage function 230 * @return Maximum LUN (index, not count), or -1230 * @return Error code of maximum LUN (index, not count) 231 231 */ 232 232 int usb_massstor_get_max_lun(usbmast_dev_t *mdev) … … 240 240 &data_recv_len); 241 241 if (rc != EOK) { 242 return -1;242 return rc; 243 243 } 244 244 if (data_recv_len != 1) { 245 return -1;246 } 247 return max_lun;245 return EEMPTY; 246 } 247 return (int) max_lun; 248 248 } 249 249
Note:
See TracChangeset
for help on using the changeset viewer.