Fix typo in error output and a little automatic whitespace cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41715 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
43eaff044c
commit
35e8baa6b0
@ -185,7 +185,7 @@ ATADevice::ReadCapacity(ATARequest *request)
|
|||||||
} else
|
} else
|
||||||
data.lba = UINT_MAX;
|
data.lba = UINT_MAX;
|
||||||
TRACE("returning last block: %lu\n", B_BENDIAN_TO_HOST_INT32(data.lba));
|
TRACE("returning last block: %lu\n", B_BENDIAN_TO_HOST_INT32(data.lba));
|
||||||
|
|
||||||
copy_sg_data(ccb, 0, ccb->data_length, &data, sizeof(data), false);
|
copy_sg_data(ccb, 0, ccb->data_length, &data, sizeof(data), false);
|
||||||
ccb->data_resid = MAX(ccb->data_length - sizeof(data), 0);
|
ccb->data_resid = MAX(ccb->data_length - sizeof(data), 0);
|
||||||
return B_OK;
|
return B_OK;
|
||||||
@ -196,7 +196,7 @@ status_t
|
|||||||
ATADevice::ReadCapacity16(ATARequest *request)
|
ATADevice::ReadCapacity16(ATARequest *request)
|
||||||
{
|
{
|
||||||
TRACE_FUNCTION("%p\n", request);
|
TRACE_FUNCTION("%p\n", request);
|
||||||
|
|
||||||
scsi_ccb *ccb = request->CCB();
|
scsi_ccb *ccb = request->CCB();
|
||||||
scsi_res_read_capacity_long data;
|
scsi_res_read_capacity_long data;
|
||||||
data.block_size = B_HOST_TO_BENDIAN_INT32(fBlockSize);
|
data.block_size = B_HOST_TO_BENDIAN_INT32(fBlockSize);
|
||||||
@ -501,7 +501,7 @@ ATADevice::ConfigureDMA()
|
|||||||
#undef CHECK_DMA_MODE
|
#undef CHECK_DMA_MODE
|
||||||
|
|
||||||
if (modeCount != 1) {
|
if (modeCount != 1) {
|
||||||
TRACE_ERROR("more than on DMA mode selected, not using DMA\n");
|
TRACE_ERROR("more than one DMA mode selected, not using DMA\n");
|
||||||
fUseDMA = false;
|
fUseDMA = false;
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user