From 22d300c2ce97ec49774238e51d2ff95380c9ba7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 2 Mar 2014 21:54:31 +0100 Subject: [PATCH] AHCI/BFS: fixed temporary trim debug output. --- src/add-ons/kernel/busses/scsi/ahci/ahci_port.cpp | 6 +++--- src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/add-ons/kernel/busses/scsi/ahci/ahci_port.cpp b/src/add-ons/kernel/busses/scsi/ahci/ahci_port.cpp index 5f7933f24c..a7429088f0 100644 --- a/src/add-ons/kernel/busses/scsi/ahci/ahci_port.cpp +++ b/src/add-ons/kernel/busses/scsi/ahci/ahci_port.cpp @@ -818,7 +818,7 @@ AHCIPort::ScsiUnmap(scsi_ccb* request, scsi_unmap_parameter_list* unmapBlocks) dprintf("TRIM SCSI:\n"); for (uint32 i = 0; i < scsiRangeCount; i++) { - dprintf("[3%" B_PRIu32 "] %" B_PRIu64 " : %" B_PRIu32 "\n", i, + dprintf("[%3" B_PRIu32 "] %" B_PRIu64 " : %" B_PRIu32 "\n", i, B_BENDIAN_TO_HOST_INT64(unmapBlocks->blocks[i].lba), B_BENDIAN_TO_HOST_INT32(unmapBlocks->blocks[i].block_count)); } @@ -896,8 +896,8 @@ for (uint32 i = 0; i < scsiRangeCount; i++) { dprintf("TRIM AHCI:\n"); for (uint32 i = 0; i < lbaRangeCount; i++) { uint64 value = B_HOST_TO_LENDIAN_INT64(lbaRanges[i]); - dprintf("[3%" B_PRIu32 "] %" B_PRIu64 " : %" B_PRIu64 "\n", i, - value >> 48, value & (((uint64)1 << 48) - 1)); + dprintf("[%3" B_PRIu32 "] %" B_PRIu64 " : %" B_PRIu64 "\n", i, + value & (((uint64)1 << 48) - 1), value >> 48); } sata_request sreq; diff --git a/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp b/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp index 77f530fb93..b41d0e4a4b 100644 --- a/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp +++ b/src/add-ons/kernel/file_systems/bfs/BlockAllocator.cpp @@ -2215,7 +2215,7 @@ BlockAllocator::_TrimNext(fs_trim_data& trimData, uint32 maxRanges, trimData.trimmed_size = 0; dprintf("TRIM FS:\n"); for (uint32 i = 0; i < trimData.range_count; i++) { - dprintf("[3%" B_PRIu32 "] %" B_PRIu64 " : %" B_PRIu64 "\n", i, + dprintf("[%3" B_PRIu32 "] %" B_PRIu64 " : %" B_PRIu64 "\n", i, trimData.ranges[i].offset, trimData.ranges[i].size); } if (ioctl(fVolume->Device(), B_TRIM_DEVICE, &trimData,