Fix debug output

This commit is contained in:
Ingo Weinhold
2011-11-25 06:19:41 +01:00
parent 8fb0681018
commit a70f4da47e
@@ -7,6 +7,7 @@
#include "Index.h" #include "Index.h"
#include "DebugSupport.h" #include "DebugSupport.h"
#include "Directory.h"
#include "Node.h" #include "Node.h"
#include "IndexImpl.h" #include "IndexImpl.h"
@@ -73,11 +74,13 @@ void
Index::Dump() Index::Dump()
{ {
D( D(
PRINT(("Index: `%s', type: %lx\n", Name(), Type())); PRINT("Index: `%s', type: %" B_PRIx32 "\n", Name(), Type());
for (IndexIterator it(this); it.Current(); it.Next()) { IndexIterator it;
Node* node = it.Current(); if (GetIterator(it)) {
PRINT((" node: `%s', dir: %lld\n", node->GetName(), while (Node* node = it.Next()) {
node->Parent()->ID())); PRINT(" node: `%s', dir: %" B_PRIdINO "\n", node->Name(),
node->Parent()->ID());
}
} }
) )
} }