Changeset 8579 in vbox for trunk/src/VBox/Devices
- Timestamp:
- May 5, 2008 1:54:26 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvHostBase.cpp
r8569 r8579 1163 1163 memcpy(&cdb[0], pbCmd, cbCmd); 1164 1164 IOReturn irc = (*ppScsiTaskI)->SetCommandDescriptorBlock(ppScsiTaskI, cdb, cbCmd); 1165 AssertBreak Void(irc == kIOReturnSuccess);1165 AssertBreak(irc == kIOReturnSuccess); 1166 1166 1167 1167 /* Setup the buffer. */ … … 1176 1176 : kSCSIDataTransfer_FromInitiatorToTarget); 1177 1177 } 1178 AssertBreak Void(irc == kIOReturnSuccess);1178 AssertBreak(irc == kIOReturnSuccess); 1179 1179 1180 1180 /* Set the timeout. */ 1181 1181 irc = (*ppScsiTaskI)->SetTimeoutDuration(ppScsiTaskI, cTimeoutMillies ? cTimeoutMillies : 30000 /*ms*/); 1182 AssertBreak Void(irc == kIOReturnSuccess);1182 AssertBreak(irc == kIOReturnSuccess); 1183 1183 1184 1184 /* Execute the command and get the response. */ … … 1188 1188 UInt64 cbReturned = 0; 1189 1189 irc = (*ppScsiTaskI)->ExecuteTaskSync(ppScsiTaskI, &SenseData, &TaskStatus, &cbReturned); 1190 AssertBreak Void(irc == kIOReturnSuccess);1190 AssertBreak(irc == kIOReturnSuccess); 1191 1191 if (pcbBuf) 1192 1192 *pcbBuf = cbReturned; 1193 1193 1194 1194 irc = (*ppScsiTaskI)->GetSCSIServiceResponse(ppScsiTaskI, &ServiceResponse); 1195 AssertBreak Void(irc == kIOReturnSuccess);1196 AssertBreak Void(ServiceResponse == kSCSIServiceResponse_TASK_COMPLETE);1195 AssertBreak(irc == kIOReturnSuccess); 1196 AssertBreak(ServiceResponse == kSCSIServiceResponse_TASK_COMPLETE); 1197 1197 1198 1198 if (TaskStatus == kSCSITaskStatus_GOOD)
Note:
See TracChangeset
for help on using the changeset viewer.