Added debugging output to PartitionMap::Find()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4747 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -55,9 +55,12 @@ PartitionMap::Add(const udf_partition_descriptor* partition)
|
|||||||
const udf_partition_descriptor*
|
const udf_partition_descriptor*
|
||||||
PartitionMap::Find(uint32 partitionNumber) const
|
PartitionMap::Find(uint32 partitionNumber) const
|
||||||
{
|
{
|
||||||
|
DEBUG_INIT_ETC(CF_PUBLIC | CF_HELPER, "PartitionMap", ("partitionNumber: %ld", partitionNumber));
|
||||||
SinglyLinkedList<Udf::udf_partition_descriptor>::ConstIterator i;
|
SinglyLinkedList<Udf::udf_partition_descriptor>::ConstIterator i;
|
||||||
for (i = fList.Begin(); i != fList.End(); ++i) {
|
for (i = fList.Begin(); i != fList.End(); ++i) {
|
||||||
if (i->partition_number() == partitionNumber) {
|
if (i->partition_number() == partitionNumber) {
|
||||||
|
PRINT(("found partition #%ld\n", partitionNumber));
|
||||||
|
DUMP(*i);
|
||||||
return &(*i);
|
return &(*i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user