Added more debug output.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5183 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2003-10-28 02:23:30 +00:00
parent 553e5a0f6f
commit 41fc24055a

View File

@ -79,6 +79,7 @@ Node::~Node()
status_t
Node::Open(void **_cookie, int mode)
{
TRACE(("%p::Open()\n", this));
return Acquire();
}
@ -86,6 +87,7 @@ Node::Open(void **_cookie, int mode)
status_t
Node::Close(void *cookie)
{
TRACE(("%p::Close()\n", this));
return Release();
}
@ -115,12 +117,14 @@ status_t
Node::Acquire()
{
fRefCount++;
TRACE(("%p::Acquire(), fRefCount = %ld\n", this, fRefCount));
return B_OK;
}
status_t
Node::Release()
{
TRACE(("%p::Release(), fRefCount = %ld\n", this, fRefCount));
if (--fRefCount == 0) {
TRACE(("delete node: %p\n", this));
delete this;
@ -383,7 +387,7 @@ mount_file_systems(stage2_args *args)
while (gRoot->GetNextNode(cookie, (Node **)&directory) == B_OK) {
char name[256];
if (directory->GetName(name, sizeof(name)) == B_OK)
printf(":: %s\n", name);
printf(":: %s (%p)\n", name, directory);
void *subCookie;
if (directory->Open(&subCookie, O_RDONLY) == B_OK) {