mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-14 20:03:29 +00:00
Kernel: Put loopback adapter debug spam behind a flag
This significantly increases loopback adapter speed in normal use.
This commit is contained in:
parent
0184fc5e43
commit
586b47cede
|
@ -187,6 +187,10 @@
|
|||
#cmakedefine01 LOCK_TRACE_DEBUG
|
||||
#endif
|
||||
|
||||
#ifndef LOOPBACK_DEBUG
|
||||
#cmakedefine01 LOOPBACK_DEBUG
|
||||
#endif
|
||||
|
||||
#ifndef MASTERPTY_DEBUG
|
||||
#cmakedefine01 MASTERPTY_DEBUG
|
||||
#endif
|
||||
|
|
|
@ -30,7 +30,7 @@ LoopbackAdapter::~LoopbackAdapter() = default;
|
|||
|
||||
void LoopbackAdapter::send_raw(ReadonlyBytes payload)
|
||||
{
|
||||
dbgln("LoopbackAdapter: Sending {} byte(s) to myself.", payload.size());
|
||||
dbgln_if(LOOPBACK_DEBUG, "LoopbackAdapter: Sending {} byte(s) to myself.", payload.size());
|
||||
did_receive(payload);
|
||||
}
|
||||
|
||||
|
|
|
@ -104,6 +104,7 @@ set(LOCK_RESTORE_DEBUG ON)
|
|||
set(LOCK_SHARED_UPGRADE_DEBUG ON)
|
||||
set(LOCK_TRACE_DEBUG ON)
|
||||
set(LOOKUPSERVER_DEBUG ON)
|
||||
set(LOOPBACK_DEBUG ON)
|
||||
set(LZMA_DEBUG ON)
|
||||
set(MALLOC_DEBUG ON)
|
||||
set(MARKDOWN_DEBUG ON)
|
||||
|
|
Loading…
Reference in a new issue