From e928022bb3ae8e90e83463e85aad14d0a7ed7e7d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 21 Feb 2021 10:57:39 +0100 Subject: [PATCH] DHCPClient: Silence a debug message --- Userland/Services/DHCPClient/DHCPv4Client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Services/DHCPClient/DHCPv4Client.cpp b/Userland/Services/DHCPClient/DHCPv4Client.cpp index 6c427cbdcae..895b1467c80 100644 --- a/Userland/Services/DHCPClient/DHCPv4Client.cpp +++ b/Userland/Services/DHCPClient/DHCPv4Client.cpp @@ -114,7 +114,7 @@ DHCPv4Client::DHCPv4Client(Vector ifnames) m_server = Core::UDPServer::construct(this); m_server->on_ready_to_receive = [this] { auto buffer = m_server->receive(sizeof(DHCPv4Packet)); - dbgln("Received {} bytes", buffer.size()); + dbgln_if(DHCPV4CLIENT_DEBUG, "Received {} bytes", buffer.size()); if (buffer.size() < sizeof(DHCPv4Packet) - DHCPV4_OPTION_FIELD_MAX_LENGTH + 1 || buffer.size() > sizeof(DHCPv4Packet)) { dbgln("we expected {}-{} bytes, this is a bad packet", sizeof(DHCPv4Packet) - DHCPV4_OPTION_FIELD_MAX_LENGTH + 1, sizeof(DHCPv4Packet)); return;