* Some coding style clean up
* Replaced some PRINT call with TRACE git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27103 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -6,9 +6,10 @@
|
|||||||
/*! \brief Creates a new PhysicalPartition object.
|
/*! \brief Creates a new PhysicalPartition object.
|
||||||
*/
|
*/
|
||||||
PhysicalPartition::PhysicalPartition(uint16 number, uint32 start, uint32 length)
|
PhysicalPartition::PhysicalPartition(uint16 number, uint32 start, uint32 length)
|
||||||
: fNumber(number)
|
:
|
||||||
, fStart(start)
|
fNumber(number),
|
||||||
, fLength(length)
|
fStart(start),
|
||||||
|
fLength(length)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,13 +27,14 @@ PhysicalPartition::~PhysicalPartition()
|
|||||||
status_t
|
status_t
|
||||||
PhysicalPartition::MapBlock(uint32 logicalBlock, off_t &physicalBlock)
|
PhysicalPartition::MapBlock(uint32 logicalBlock, off_t &physicalBlock)
|
||||||
{
|
{
|
||||||
DEBUG_INIT_ETC("PhysicalPartition", ("%ld", logicalBlock));
|
TRACE(("PhysicalPartition::MapBlock: %ld", logicalBlock));
|
||||||
if (logicalBlock >= fLength) {
|
if (logicalBlock >= fLength) {
|
||||||
PRINT(("invalid logical block: %ld, length: %ld\n", logicalBlock, fLength));
|
TRACE_ERROR(("invalid logical block: %ld, length: %ld\n",
|
||||||
|
logicalBlock, fLength));
|
||||||
return B_BAD_ADDRESS;
|
return B_BAD_ADDRESS;
|
||||||
} else {
|
} else {
|
||||||
physicalBlock = fStart + logicalBlock;
|
physicalBlock = fStart + logicalBlock;
|
||||||
PRINT(("mapped %ld to %Ld\n", logicalBlock, physicalBlock));
|
TRACE(("mapped %ld to %Ld\n", logicalBlock, physicalBlock));
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -154,9 +154,9 @@ to_vnode_id(long_address address)
|
|||||||
ino_t result = address.block();
|
ino_t result = address.block();
|
||||||
result <<= 16;
|
result <<= 16;
|
||||||
result |= address.partition();
|
result |= address.partition();
|
||||||
PRINT(("block: %ld, 0x%lx\n", address.block(), address.block()));
|
TRACE(("block: %ld, 0x%lx\n", address.block(), address.block()));
|
||||||
PRINT(("partition: %d, 0x%x\n", address.partition(), address.partition()));
|
TRACE(("partition: %d, 0x%x\n", address.partition(), address.partition()));
|
||||||
PRINT(("length: %ld, 0x%lx\n", address.length(), address.length()));
|
TRACE(("length: %ld, 0x%lx\n", address.length(), address.length()));
|
||||||
PRINT(("ino_t: %Ld, 0x%Lx\n", result, result));
|
TRACE(("ino_t: %Ld, 0x%Lx\n", result, result));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user