TTY: Use dbg() instead of dbgprintf()

This commit is contained in:
Liav A 2020-02-25 00:31:05 +02:00 committed by Andreas Kling
parent db23703570
commit 309593d5bd
Notes: sideshowbarker 2024-07-19 09:00:38 +09:00

View File

@ -88,11 +88,11 @@ ssize_t TTY::read(FileDescription&, u8* buffer, ssize_t size)
ssize_t TTY::write(FileDescription&, const u8* buffer, ssize_t size)
{
#ifdef TTY_DEBUG
dbgprintf("TTY::write {%u} ", size);
dbg() << "TTY::write {" << String::format("%u", size) << "} ";
for (size_t i = 0; i < size; ++i) {
dbgprintf("%b ", buffer[i]);
dbg() << String::format("%b ", buffer[i]);
}
dbgprintf("\n");
dbg() << "";
#endif
on_tty_write(buffer, size);
return size;