SB16: Put debug spam behind SB16_DEBUG.

This commit is contained in:
Andreas Kling 2019-07-13 17:55:39 +02:00
parent 48bde0393e
commit b51f0f7bfa
Notes: sideshowbarker 2024-07-19 13:18:01 +09:00

View file

@ -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) {