summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/Ext2FileSystem.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-03-09 20:17:57 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-09 22:10:41 +0100
commit10f10abaa338108d5a13200c40f72f9e5e93b07e (patch)
treeb7183f8707003ab584a76b8a1ad345ffbb9a87dd /Kernel/FileSystem/Ext2FileSystem.cpp
parent2fc684f6bcb1d2e8c8f399921ef084ba3c5ba2a1 (diff)
downloadserenity-10f10abaa338108d5a13200c40f72f9e5e93b07e.zip
Kernel: Convert klog() => dmesgln() in filesystem code
Diffstat (limited to 'Kernel/FileSystem/Ext2FileSystem.cpp')
-rw-r--r--Kernel/FileSystem/Ext2FileSystem.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/Kernel/FileSystem/Ext2FileSystem.cpp b/Kernel/FileSystem/Ext2FileSystem.cpp
index 75b58a10ca..d5f751f72b 100644
--- a/Kernel/FileSystem/Ext2FileSystem.cpp
+++ b/Kernel/FileSystem/Ext2FileSystem.cpp
@@ -115,20 +115,20 @@ bool Ext2FS::initialize()
auto& super_block = this->super_block();
if constexpr (EXT2_DEBUG) {
- klog() << "ext2fs: super block magic: " << String::format("%x", super_block.s_magic) << " (super block size: " << sizeof(ext2_super_block) << ")";
+ dmesgln("Ext2FS: super block magic: {:04x} (super block size: {})", super_block.s_magic, sizeof(ext2_super_block));
}
if (super_block.s_magic != EXT2_SUPER_MAGIC)
return false;
if constexpr (EXT2_DEBUG) {
- klog() << "ext2fs: " << super_block.s_inodes_count << " inodes, " << super_block.s_blocks_count << " blocks";
- klog() << "ext2fs: block size = " << EXT2_BLOCK_SIZE(&super_block);
- klog() << "ext2fs: first data block = " << super_block.s_first_data_block;
- klog() << "ext2fs: inodes per block = " << inodes_per_block();
- klog() << "ext2fs: inodes per group = " << inodes_per_group();
- klog() << "ext2fs: free inodes = " << super_block.s_free_inodes_count;
- klog() << "ext2fs: desc per block = " << EXT2_DESC_PER_BLOCK(&super_block);
- klog() << "ext2fs: desc size = " << EXT2_DESC_SIZE(&super_block);
+ dmesgln("Ext2FS: {} inodes, {} blocks", super_block.s_inodes_count, super_block.s_blocks_count);
+ dmesgln("Ext2FS: Block size: {}", EXT2_BLOCK_SIZE(&super_block));
+ dmesgln("Ext2FS: First data block: {}", super_block.s_first_data_block);
+ dmesgln("Ext2FS: Inodes per block: {}", inodes_per_block());
+ dmesgln("Ext2FS: Inodes per group: {}", inodes_per_group());
+ dmesgln("Ext2FS: Free inodes: {}", super_block.s_free_inodes_count);
+ dmesgln("Ext2FS: Descriptors per block: {}", EXT2_DESC_PER_BLOCK(&super_block));
+ dmesgln("Ext2FS: Descriptor size: {}", EXT2_DESC_SIZE(&super_block));
}
set_block_size(EXT2_BLOCK_SIZE(&super_block));
@@ -138,7 +138,7 @@ bool Ext2FS::initialize()
m_block_group_count = ceil_div(super_block.s_blocks_count, super_block.s_blocks_per_group);
if (m_block_group_count == 0) {
- klog() << "ext2fs: no block groups :(";
+ dmesgln("Ext2FS: no block groups :(");
return false;
}
@@ -160,7 +160,7 @@ bool Ext2FS::initialize()
if constexpr (EXT2_DEBUG) {
for (unsigned i = 1; i <= m_block_group_count; ++i) {
auto& group = group_descriptor(i);
- klog() << "ext2fs: group[" << i << "] { block_bitmap: " << group.bg_block_bitmap << ", inode_bitmap: " << group.bg_inode_bitmap << ", inode_table: " << group.bg_inode_table << " }";
+ dbgln("Ext2FS: group[{}] ( block_bitmap: {}, inode_bitmap: {}, inode_table: {} )", i, group.bg_block_bitmap, group.bg_inode_bitmap, group.bg_inode_table);
}
}