summaryrefslogtreecommitdiff
path: root/Kernel/Net/IPv4Socket.cpp
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2020-02-24 14:40:46 +0200
committerAndreas Kling <kling@serenityos.org>2020-02-27 13:05:12 +0100
commitd6ae2cf46acb9526ebf1c3f28d21ece9c10c5260 (patch)
tree0240c6c969c036ffdd6ba1628ecbfd46922cec17 /Kernel/Net/IPv4Socket.cpp
parent4432bf41f68e538fc6f397bb39e80b0cc1b9d7b8 (diff)
downloadserenity-d6ae2cf46acb9526ebf1c3f28d21ece9c10c5260.zip
IPv4Socket: Use dbg() instead of dbgprintf()
Diffstat (limited to 'Kernel/Net/IPv4Socket.cpp')
-rw-r--r--Kernel/Net/IPv4Socket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Net/IPv4Socket.cpp b/Kernel/Net/IPv4Socket.cpp
index b819b5e24b..255144ce91 100644
--- a/Kernel/Net/IPv4Socket.cpp
+++ b/Kernel/Net/IPv4Socket.cpp
@@ -122,7 +122,7 @@ KResult IPv4Socket::bind(const sockaddr* user_address, socklen_t address_size)
m_local_port = requested_local_port;
#ifdef IPV4_SOCKET_DEBUG
- dbgprintf("IPv4Socket::bind %s{%p} to %s:%u\n", class_name(), this, m_local_address.to_string().characters(), m_local_port);
+ dbg() << "IPv4Socket::bind " << class_name() << "{" << this << "} to " << m_local_address.to_string().characters() << ":" << m_local_port;
#endif
return protocol_bind();
@@ -316,7 +316,7 @@ ssize_t IPv4Socket::receive_packet_buffered(FileDescription& description, void*
if (addr) {
#ifdef IPV4_SOCKET_DEBUG
- dbgprintf("Incoming packet is from: %s:%u\n", packet.peer_address.to_string().characters(), packet.peer_port);
+ dbg() << "Incoming packet is from: " << packet.peer_address.to_string().characters() << ":" << packet.peer_port;
#endif
auto& ia = *(sockaddr_in*)addr;
memcpy(&ia.sin_addr, &packet.peer_address, sizeof(IPv4Address));