1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 18:55:07 +00:00

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

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