mirror of
https://review.haiku-os.org/haiku
synced 2025-02-23 05:58:31 +01:00
* 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:
parent
67a6ba1c21
commit
c9334140f6
@ -6,9 +6,10 @@
|
||||
/*! \brief Creates a new PhysicalPartition object.
|
||||
*/
|
||||
PhysicalPartition::PhysicalPartition(uint16 number, uint32 start, uint32 length)
|
||||
: fNumber(number)
|
||||
, fStart(start)
|
||||
, fLength(length)
|
||||
:
|
||||
fNumber(number),
|
||||
fStart(start),
|
||||
fLength(length)
|
||||
{
|
||||
}
|
||||
|
||||
@ -26,13 +27,14 @@ PhysicalPartition::~PhysicalPartition()
|
||||
status_t
|
||||
PhysicalPartition::MapBlock(uint32 logicalBlock, off_t &physicalBlock)
|
||||
{
|
||||
DEBUG_INIT_ETC("PhysicalPartition", ("%ld", logicalBlock));
|
||||
TRACE(("PhysicalPartition::MapBlock: %ld", logicalBlock));
|
||||
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;
|
||||
} else {
|
||||
physicalBlock = fStart + logicalBlock;
|
||||
PRINT(("mapped %ld to %Ld\n", logicalBlock, physicalBlock));
|
||||
TRACE(("mapped %ld to %Ld\n", logicalBlock, physicalBlock));
|
||||
return B_OK;
|
||||
}
|
||||
}
|
||||
|
@ -30,10 +30,10 @@ const charspec kCs0CharacterSet(0, "OSTA Compressed Unicode");
|
||||
// };
|
||||
|
||||
// Volume structure descriptor ids
|
||||
const char* kVSDID_BEA = "BEA01";
|
||||
const char* kVSDID_TEA = "TEA01";
|
||||
const char* kVSDID_BEA = "BEA01";
|
||||
const char* kVSDID_TEA = "TEA01";
|
||||
const char* kVSDID_BOOT = "BOOT2";
|
||||
const char* kVSDID_ISO = "CD001";
|
||||
const char* kVSDID_ISO = "CD001";
|
||||
const char* kVSDID_ECMA167_2 = "NSR02";
|
||||
const char* kVSDID_ECMA167_3 = "NSR03";
|
||||
const char* kVSDID_ECMA168 = "CDW02";
|
||||
|
@ -154,9 +154,9 @@ to_vnode_id(long_address address)
|
||||
ino_t result = address.block();
|
||||
result <<= 16;
|
||||
result |= address.partition();
|
||||
PRINT(("block: %ld, 0x%lx\n", address.block(), address.block()));
|
||||
PRINT(("partition: %d, 0x%x\n", address.partition(), address.partition()));
|
||||
PRINT(("length: %ld, 0x%lx\n", address.length(), address.length()));
|
||||
PRINT(("ino_t: %Ld, 0x%Lx\n", result, result));
|
||||
TRACE(("block: %ld, 0x%lx\n", address.block(), address.block()));
|
||||
TRACE(("partition: %d, 0x%x\n", address.partition(), address.partition()));
|
||||
TRACE(("length: %ld, 0x%lx\n", address.length(), address.length()));
|
||||
TRACE(("ino_t: %Ld, 0x%Lx\n", result, result));
|
||||
return result;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user