diff options
author | Andreas Kling <kling@serenityos.org> | 2021-03-11 12:58:26 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-11 14:21:49 +0100 |
commit | a7b62820862b0eb7f8ff2b2602bce68fc02853ea (patch) | |
tree | 486a1c18cd2ed774605ce533a752c8321e6bfa5e /Kernel/FileSystem | |
parent | c436c3e13d5e417dbd37de07feb75469a145896d (diff) | |
download | serenity-a7b62820862b0eb7f8ff2b2602bce68fc02853ea.zip |
Kernel: Silence debug spam about chown and symlink during boot
Diffstat (limited to 'Kernel/FileSystem')
-rw-r--r-- | Kernel/FileSystem/VirtualFileSystem.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/FileSystem/VirtualFileSystem.cpp b/Kernel/FileSystem/VirtualFileSystem.cpp index 3fe9ecda02..4dc111bc02 100644 --- a/Kernel/FileSystem/VirtualFileSystem.cpp +++ b/Kernel/FileSystem/VirtualFileSystem.cpp @@ -605,10 +605,10 @@ KResult VFS::chown(Custody& custody, uid_t a_uid, gid_t a_gid) if (custody.is_readonly()) return EROFS; - dbgln("VFS::chown(): inode {} <- uid={} gid={}", inode.identifier(), new_uid, new_gid); + dbgln_if(VFS_DEBUG, "VFS::chown(): inode {} <- uid={} gid={}", inode.identifier(), new_uid, new_gid); if (metadata.is_setuid() || metadata.is_setgid()) { - dbgln("VFS::chown(): Stripping SUID/SGID bits from {}", inode.identifier()); + dbgln_if(VFS_DEBUG, "VFS::chown(): Stripping SUID/SGID bits from {}", inode.identifier()); auto result = inode.chmod(metadata.mode & ~(04000 | 02000)); if (result.is_error()) return result; @@ -734,7 +734,7 @@ KResult VFS::symlink(StringView target, StringView linkpath, Custody& base) return EROFS; LexicalPath p(linkpath); - dbgln("VFS::symlink: '{}' (-> '{}') in {}", p.basename(), target, parent_inode.identifier()); + dbgln_if(VFS_DEBUG, "VFS::symlink: '{}' (-> '{}') in {}", p.basename(), target, parent_inode.identifier()); auto inode_or_error = parent_inode.create_child(p.basename(), S_IFLNK | 0644, 0, current_process->euid(), current_process->egid()); if (inode_or_error.is_error()) return inode_or_error.error(); |