mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-23 08:00:20 +00:00
DHCPClient: Silence a debug message
This commit is contained in:
parent
2a22d346dc
commit
e928022bb3
Notes:
sideshowbarker
2024-07-18 22:04:02 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/e928022bb3a
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ DHCPv4Client::DHCPv4Client(Vector<InterfaceDescriptor> 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;
|
||||
|
|
Loading…
Reference in a new issue