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:
parent
48bde0393e
commit
b51f0f7bfa
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue