mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 05:55:13 +00:00
SB16: Put debug spam behind SB16_DEBUG.
This commit is contained in:
parent
48bde0393e
commit
b51f0f7bfa
Notes:
sideshowbarker
2024-07-19 13:18:01 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/b51f0f7bfa8
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
Reference in a new issue