Kernel/VFS: Silence mknod debug spam

Since we populate the DevFS now in userspace, this creates a bunch of
unnecessary noise in the kernel log.
This commit is contained in:
Liav A 2021-08-14 07:11:30 +03:00 committed by Andreas Kling
parent e0d712c6f7
commit 4f04cb98c1
Notes: sideshowbarker 2024-07-18 04:29:08 +09:00

View file

@ -316,7 +316,7 @@ KResult VirtualFileSystem::mknod(StringView path, mode_t mode, dev_t dev, Custod
return EROFS;
auto basename = KLexicalPath::basename(path);
dbgln("VirtualFileSystem::mknod: '{}' mode={} dev={} in {}", basename, mode, dev, parent_inode.identifier());
dbgln_if(VFS_DEBUG, "VirtualFileSystem::mknod: '{}' mode={} dev={} in {}", basename, mode, dev, parent_inode.identifier());
return parent_inode.create_child(basename, mode, dev, current_process.euid(), current_process.egid()).result();
}