diff options
author | asynts <asynts@gmail.com> | 2021-01-10 15:43:09 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-11 11:55:47 +0100 |
commit | 5931758dbc4561c6d14bc7dba25cffabb5e3ca9f (patch) | |
tree | ce2f49818d183121d45586dc26c77aca0a6339e1 /Kernel/Storage | |
parent | dca6f1f49b30b462d37440092e50a1a381b7cd2a (diff) | |
download | serenity-5931758dbc4561c6d14bc7dba25cffabb5e3ca9f.zip |
Everywhere: Replace a bundle of dbg with dbgln.
These changes are arbitrarily divided into multiple commits to make it
easier to find potentially introduced bugs with git bisect.Everything:
Diffstat (limited to 'Kernel/Storage')
-rw-r--r-- | Kernel/Storage/IDEChannel.cpp | 4 | ||||
-rw-r--r-- | Kernel/Storage/Partition/GUIDPartitionTable.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Storage/IDEChannel.cpp b/Kernel/Storage/IDEChannel.cpp index db40aeea54..1ed397b7b4 100644 --- a/Kernel/Storage/IDEChannel.cpp +++ b/Kernel/Storage/IDEChannel.cpp @@ -272,7 +272,7 @@ void IDEChannel::handle_irq(const RegisterState&) // trigger page faults Processor::deferred_call_queue([this]() { if (m_current_request->request_type() == AsyncBlockDeviceRequest::Read) { - dbg() << "IDEChannel: Read block " << m_current_request_block_index << "/" << m_current_request->block_count(); + dbgln("IDEChannel: Read block {}/{}", m_current_request_block_index, m_current_request->block_count()); if (ata_do_read_sector()) { if (++m_current_request_block_index >= m_current_request->block_count()) { complete_current_request(AsyncDeviceRequest::Success); @@ -283,7 +283,7 @@ void IDEChannel::handle_irq(const RegisterState&) } } else { if (!m_current_request_flushing_cache) { - dbg() << "IDEChannel: Wrote block " << m_current_request_block_index << "/" << m_current_request->block_count(); + dbgln("IDEChannel: Wrote block {}/{}", m_current_request_block_index, m_current_request->block_count()); if (++m_current_request_block_index >= m_current_request->block_count()) { // We read the last block, flush cache ASSERT(!m_current_request_flushing_cache); diff --git a/Kernel/Storage/Partition/GUIDPartitionTable.cpp b/Kernel/Storage/Partition/GUIDPartitionTable.cpp index f7d3f7d843..81ea9666ea 100644 --- a/Kernel/Storage/Partition/GUIDPartitionTable.cpp +++ b/Kernel/Storage/Partition/GUIDPartitionTable.cpp @@ -133,7 +133,7 @@ bool GUIDPartitionTable::initialize() Array<u8, 16> unique_guid {}; unique_guid.span().overwrite(0, entry.unique_guid, unique_guid.size()); String name = entry.partition_name; - dbg() << "Detected GPT partition (entry " << entry_index << ") , offset " << entry.first_lba << " , limit " << entry.last_lba; + dbgln("Detected GPT partition (entry={}), offset={}, limit={}", entry_index, entry.first_lba, entry.last_lba); m_partitions.append({ entry.first_lba, entry.last_lba, partition_type, unique_guid, entry.attributes, "" }); raw_byte_index += header().partition_entry_size; } |