Debug Inode ctor/dctor; fix printf args warnigns

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6285 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2004-01-25 13:36:13 +00:00
parent 1cea3d8564
commit 32e3f99972
2 changed files with 13 additions and 4 deletions

View File

@ -178,6 +178,9 @@ Inode::Inode(Volume *volume, vnode_id id, bool empty, uint8 reenter)
fTree(NULL), fTree(NULL),
fLock() fLock()
{ {
#ifdef DEBUG
kprintf("Inode::Inode(0x%08lx, %Ld, %s, %s) @ 0x%08lx\n", (uint32)volume, id, empty?"t":"f", reenter?"t":"f", (uint32)this);
#endif
Initialize(); Initialize();
} }
@ -187,12 +190,18 @@ Inode::Inode(CachedBlock *cached)
fTree(NULL), fTree(NULL),
fLock() fLock()
{ {
#ifdef DEBUG
kprintf("Inode::Inode(0x%08lx) @ 0x%08lx\n", (uint32)cached, (uint32)this);
#endif
Initialize(); Initialize();
} }
Inode::~Inode() Inode::~Inode()
{ {
#ifdef DEBUG
kprintf("Inode::~Inode() @ 0x%08lx\n", (uint32)this);
#endif
delete fTree; delete fTree;
} }
@ -2052,8 +2061,8 @@ Inode::KDumpMe()
{ {
kprintf("Inode {\n"); kprintf("Inode {\n");
CachedBlock::KDumpMe(); CachedBlock::KDumpMe();
kprintf("fTree = 0x%08lx\n", fTree); kprintf("fTree = 0x%08lx\n", (uint32)fTree);
kprintf("fAttributes = 0x%08lx\n", fAttributes); kprintf("fAttributes = 0x%08lx\n", (uint32)fAttributes);
kprintf("fLock {}\n"); kprintf("fLock {}\n");
kprintf("fOldSize = 0x%16Lx\n", fOldSize); kprintf("fOldSize = 0x%16Lx\n", fOldSize);
kprintf("fOldLastModified = 0x%16Lx\n", fOldLastModified); kprintf("fOldLastModified = 0x%16Lx\n", fOldLastModified);

View File

@ -383,9 +383,9 @@ inline void
CachedBlock::KDumpMe() CachedBlock::KDumpMe()
{ {
kprintf("CachedBlock {\n"); kprintf("CachedBlock {\n");
kprintf("fVolume = 0x%08lx\n", fVolume); kprintf("fVolume = 0x%08lx\n", (uint32)fVolume);
kprintf("fBlockNumber = 0x%16Lx\n", fBlockNumber); kprintf("fBlockNumber = 0x%16Lx\n", fBlockNumber);
kprintf("fBlock = 0x%08lx\n", fBlock); kprintf("fBlock = 0x%08lx\n", (uint32)fBlock);
kprintf("}\n"); kprintf("}\n");
} }