Changeset 8569 in vbox for trunk/src/VBox/Devices/Storage/DrvHostBase.cpp
- Timestamp:
- May 5, 2008 12:32:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvHostBase.cpp
r8155 r8569 1163 1163 memcpy(&cdb[0], pbCmd, cbCmd); 1164 1164 IOReturn irc = (*ppScsiTaskI)->SetCommandDescriptorBlock(ppScsiTaskI, cdb, cbCmd); 1165 AssertBreak (irc == kIOReturnSuccess,);1165 AssertBreakVoid(irc == kIOReturnSuccess); 1166 1166 1167 1167 /* Setup the buffer. */ … … 1176 1176 : kSCSIDataTransfer_FromInitiatorToTarget); 1177 1177 } 1178 AssertBreak (irc == kIOReturnSuccess,);1178 AssertBreakVoid(irc == kIOReturnSuccess); 1179 1179 1180 1180 /* Set the timeout. */ 1181 1181 irc = (*ppScsiTaskI)->SetTimeoutDuration(ppScsiTaskI, cTimeoutMillies ? cTimeoutMillies : 30000 /*ms*/); 1182 AssertBreak (irc == kIOReturnSuccess,);1182 AssertBreakVoid(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 (irc == kIOReturnSuccess,);1190 AssertBreakVoid(irc == kIOReturnSuccess); 1191 1191 if (pcbBuf) 1192 1192 *pcbBuf = cbReturned; 1193 1193 1194 1194 irc = (*ppScsiTaskI)->GetSCSIServiceResponse(ppScsiTaskI, &ServiceResponse); 1195 AssertBreak (irc == kIOReturnSuccess,);1196 AssertBreak (ServiceResponse == kSCSIServiceResponse_TASK_COMPLETE,);1195 AssertBreakVoid(irc == kIOReturnSuccess); 1196 AssertBreakVoid(ServiceResponse == kSCSIServiceResponse_TASK_COMPLETE); 1197 1197 1198 1198 if (TaskStatus == kSCSITaskStatus_GOOD)
Note:
See TracChangeset
for help on using the changeset viewer.