From b51f0f7bfa86d2bc3975418feb5d2dd65b6ef15b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 13 Jul 2019 17:55:39 +0200 Subject: [PATCH] SB16: Put debug spam behind SB16_DEBUG. --- Kernel/Devices/SB16.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Kernel/Devices/SB16.cpp b/Kernel/Devices/SB16.cpp index 27b79a792d5..1e6bc45163a 100644 --- a/Kernel/Devices/SB16.cpp +++ b/Kernel/Devices/SB16.cpp @@ -154,11 +154,15 @@ void SB16::wait_for_irq() ssize_t SB16::write(FileDescription&, const u8* data, ssize_t length) { if (!m_dma_buffer_page) { +#ifdef SB16_DEBUG kprintf("SB16: Allocating page\n"); +#endif m_dma_buffer_page = MM.allocate_supervisor_physical_page(); } +#ifdef SB16_DEBUG kprintf("SB16: Writing buffer of %d bytes\n", length); +#endif ASSERT(length <= PAGE_SIZE); const int BLOCK_SIZE = 32 * 1024; if (length > BLOCK_SIZE) {