From 35e8baa6b0a2967753b2d2ddfc9fcb10956a6946 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Tue, 24 May 2011 17:01:35 +0000 Subject: [PATCH] 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 --- src/add-ons/kernel/bus_managers/ata/ATADevice.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/add-ons/kernel/bus_managers/ata/ATADevice.cpp b/src/add-ons/kernel/bus_managers/ata/ATADevice.cpp index e8d509cba7..f055eb1d75 100644 --- a/src/add-ons/kernel/bus_managers/ata/ATADevice.cpp +++ b/src/add-ons/kernel/bus_managers/ata/ATADevice.cpp @@ -185,7 +185,7 @@ ATADevice::ReadCapacity(ATARequest *request) } else data.lba = UINT_MAX; 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); ccb->data_resid = MAX(ccb->data_length - sizeof(data), 0); return B_OK; @@ -196,7 +196,7 @@ status_t ATADevice::ReadCapacity16(ATARequest *request) { TRACE_FUNCTION("%p\n", request); - + scsi_ccb *ccb = request->CCB(); scsi_res_read_capacity_long data; data.block_size = B_HOST_TO_BENDIAN_INT32(fBlockSize); @@ -501,7 +501,7 @@ ATADevice::ConfigureDMA() #undef CHECK_DMA_MODE 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; return B_OK; }