Kernel: Fix some broken debugging code in VFS.

This commit is contained in:
Andreas Kling 2019-02-06 17:27:51 +01:00
parent d0b2949b4d
commit 03c0e836f0

View file

@ -443,7 +443,7 @@ InodeIdentifier VFS::resolve_path(const String& path, InodeIdentifier base, int&
auto metadata = crumb_inode->metadata();
if (!metadata.is_directory()) {
#ifdef VFS_DEBUG
kprintf("parent of <%s> not directory, it's inode %u:%u / %u:%u, mode: %u, size: %u\n", part.characters(), inode.fsid(), inode.index(), metadata.inode.fsid(), metadata.inode.index(), metadata.mode, metadata.size);
kprintf("parent of <%s> not directory, it's inode %u:%u / %u:%u, mode: %u, size: %u\n", part.characters(), crumb_id.fsid(), crumb_id.index(), metadata.inode.fsid(), metadata.inode.index(), metadata.mode, metadata.size);
#endif
error = -ENOTDIR;
return { };
@ -458,7 +458,7 @@ InodeIdentifier VFS::resolve_path(const String& path, InodeIdentifier base, int&
return { };
}
#ifdef VFS_DEBUG
kprintf("<%s> %u:%u\n", part.characters(), inode.fsid(), inode.index());
kprintf("<%s> %u:%u\n", part.characters(), crumb_id.fsid(), crumb_id.index());
#endif
if (auto mount = find_mount_for_host(crumb_id)) {
#ifdef VFS_DEBUG