summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-28 22:14:37 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-28 22:14:37 +0200
commita6d407fec5b85963043521aa186fd09b1e815b5e (patch)
tree4df5ac499b1405b9170a7594b178b4fead0d060e /Kernel/FileSystem
parent899f6a5de2037364ce809e38970d7bcb0d4ab56b (diff)
downloadserenity-a6d407fec5b85963043521aa186fd09b1e815b5e.zip
Ext2FS: Put some debug spam behind EXT2_DEBUG.
Diffstat (limited to 'Kernel/FileSystem')
-rw-r--r--Kernel/FileSystem/Ext2FileSystem.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Kernel/FileSystem/Ext2FileSystem.cpp b/Kernel/FileSystem/Ext2FileSystem.cpp
index a7c4559aa7..094e09414f 100644
--- a/Kernel/FileSystem/Ext2FileSystem.cpp
+++ b/Kernel/FileSystem/Ext2FileSystem.cpp
@@ -523,8 +523,10 @@ bool Ext2FSInode::resize(qword new_size)
int blocks_needed_before = ceil_div(old_size, block_size);
int blocks_needed_after = ceil_div(new_size, block_size);
- dbgprintf("blocks needed before (size was %u): %d\n", old_size, blocks_needed_before);
- dbgprintf("blocks needed after (size is %u): %d\n", new_size, blocks_needed_after);
+#ifdef EXT2_DEBUG
+ dbgprintf("Ext2FSInode::resize(): blocks needed before (size was %Q): %d\n", old_size, blocks_needed_before);
+ dbgprintf("Ext2FSInode::resize(): blocks needed after (size is %Q): %d\n", new_size, blocks_needed_after);
+#endif
auto block_list = fs().block_list_for_inode(m_raw_inode);
if (blocks_needed_after > blocks_needed_before) {