Kernel: Put loopback adapter debug spam behind a flag

This significantly increases loopback adapter speed in normal use.
This commit is contained in:
Tim Ledbetter
2023-06-17 09:37:47 +01:00
committed by Sam Atkins
parent 0184fc5e43
commit 586b47cede
3 changed files with 6 additions and 1 deletions

View File

@@ -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);
}