1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:57:43 +00:00

Kernel: Fix debug messages in IPv4Socket

This commit is contained in:
Conrad Pankoff 2019-09-08 16:56:22 +10:00 committed by Andreas Kling
parent 040947ee47
commit 749719b4d0

View file

@ -216,7 +216,7 @@ ssize_t IPv4Socket::recvfrom(FileDescription& description, void* buffer, size_t
packet = m_receive_queue.take_first();
m_can_read = !m_receive_queue.is_empty();
#ifdef IPV4_SOCKET_DEBUG
kprintf("IPv4Socket(%p): recvfrom without blocking %d bytes, packets in queue: %d\n", this, packet.data.size(), m_receive_queue.size_slow());
kprintf("IPv4Socket(%p): recvfrom without blocking %d bytes, packets in queue: %d\n", this, packet.data.value().size(), m_receive_queue.size_slow());
#endif
}
}
@ -242,7 +242,7 @@ ssize_t IPv4Socket::recvfrom(FileDescription& description, void* buffer, size_t
packet = m_receive_queue.take_first();
m_can_read = !m_receive_queue.is_empty();
#ifdef IPV4_SOCKET_DEBUG
kprintf("IPv4Socket(%p): recvfrom with blocking %d bytes, packets in queue: %d\n", this, packet.data.size(), m_receive_queue.size_slow());
kprintf("IPv4Socket(%p): recvfrom with blocking %d bytes, packets in queue: %d\n", this, packet.data.value().size(), m_receive_queue.size_slow());
#endif
}
ASSERT(packet.data.has_value());