mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
TTY: Use dbg() instead of dbgprintf()
This commit is contained in:
parent
db23703570
commit
309593d5bd
Notes:
sideshowbarker
2024-07-19 09:00:38 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/309593d5bd2 Pull-request: https://github.com/SerenityOS/serenity/pull/1290
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue