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