summaryrefslogtreecommitdiff
path: root/Kernel/Storage
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2021-01-14 22:44:54 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-22 22:14:30 +0100
commita348ab55b038386bd2d0acc0c8de1c8927de12fe (patch)
treeb191ef3a7df013506774a933dc04e4b0decc0bbc /Kernel/Storage
parentc6ebca5b4555c4a0480c11dcb9de245d7328d4de (diff)
downloadserenity-a348ab55b038386bd2d0acc0c8de1c8927de12fe.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.
Diffstat (limited to 'Kernel/Storage')
-rw-r--r--Kernel/Storage/IDEChannel.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/Kernel/Storage/IDEChannel.cpp b/Kernel/Storage/IDEChannel.cpp
index 1ed397b7b4..2bc92f4817 100644
--- a/Kernel/Storage/IDEChannel.cpp
+++ b/Kernel/Storage/IDEChannel.cpp
@@ -178,9 +178,7 @@ void IDEChannel::complete_current_request(AsyncDeviceRequest::RequestResult resu
// which could cause page faults. Note that this may be called immediately
// before Processor::deferred_call_queue returns!
Processor::deferred_call_queue([this, result]() {
-#ifdef PATA_DEBUG
- dbg() << "IDEChannel::complete_current_request result: " << result;
-#endif
+ dbgln<debug_pata>("IDEChannel::complete_current_request result: {}", (int)result);
ASSERT(m_current_request);
auto& request = *m_current_request;
m_current_request = nullptr;
@@ -368,9 +366,7 @@ void IDEChannel::ata_read_sectors_with_dma(bool slave_request)
{
auto& request = *m_current_request;
u32 lba = request.block_index();
-#ifdef PATA_DEBUG
- dbg() << "IDEChannel::ata_read_sectors_with_dma (" << lba << " x" << request.block_count() << ")";
-#endif
+ dbgln<debug_pata>("IDEChannel::ata_read_sectors_with_dma ({} x {})", lba, request.block_count());
prdt().offset = m_dma_buffer_page->paddr();
prdt().size = 512 * request.block_count();
@@ -489,9 +485,7 @@ void IDEChannel::ata_write_sectors_with_dma(bool slave_request)
{
auto& request = *m_current_request;
u32 lba = request.block_index();
-#ifdef PATA_DEBUG
- dbg() << "IDEChannel::ata_write_sectors_with_dma (" << lba << " x" << request.block_count() << ")";
-#endif
+ dbgln<debug_pata>("IDEChannel::ata_write_sectors_with_dma ({} x {})", lba, request.block_count());
prdt().offset = m_dma_buffer_page->paddr();
prdt().size = 512 * request.block_count();