mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
FIFO: Use dbg() instead of dbgprintf()
This commit is contained in:
parent
31a67ca2f9
commit
03592a80fc
Notes:
sideshowbarker
2024-07-19 09:01:07 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/03592a80fc2 Pull-request: https://github.com/SerenityOS/serenity/pull/1290
1 changed files with 3 additions and 3 deletions
|
@ -120,11 +120,11 @@ ssize_t FIFO::read(FileDescription&, u8* buffer, ssize_t size)
|
|||
if (!m_writers && m_buffer.is_empty())
|
||||
return 0;
|
||||
#ifdef FIFO_DEBUG
|
||||
dbgprintf("fifo: read(%u)\n", size);
|
||||
dbg() << "fifo: read(" << size << ")\n";
|
||||
#endif
|
||||
ssize_t nread = m_buffer.read(buffer, size);
|
||||
#ifdef FIFO_DEBUG
|
||||
dbgprintf(" -> read (%c) %u\n", buffer[0], nread);
|
||||
dbg() << " -> read (" << String::format("%c", buffer[0]) << ") " << nread;
|
||||
#endif
|
||||
return nread;
|
||||
}
|
||||
|
@ -136,7 +136,7 @@ ssize_t FIFO::write(FileDescription&, const u8* buffer, ssize_t size)
|
|||
return -EPIPE;
|
||||
}
|
||||
#ifdef FIFO_DEBUG
|
||||
dbgprintf("fifo: write(%p, %u)\n", buffer, size);
|
||||
dbg() << "fifo: write(" << String::format("%p", buffer) << ", " << size << ")";
|
||||
#endif
|
||||
return m_buffer.write(buffer, size);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue