From c92753a686a31cefde7058c388bc7eb081be28e4 Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Tue, 11 Jan 2022 22:29:22 +0200 Subject: Kernel: Convert IPv4SocketTuple::to_string() to KString --- Kernel/Net/IPv4SocketTuple.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Kernel/Net/IPv4SocketTuple.h') diff --git a/Kernel/Net/IPv4SocketTuple.h b/Kernel/Net/IPv4SocketTuple.h index e3beb927cb..a63d3aca71 100644 --- a/Kernel/Net/IPv4SocketTuple.h +++ b/Kernel/Net/IPv4SocketTuple.h @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -33,9 +34,9 @@ public: return other.local_address() == m_local_address && other.local_port() == m_local_port && other.peer_address() == m_peer_address && other.peer_port() == m_peer_port; }; - String to_string() const + ErrorOr> to_string() const { - return String::formatted( + return KString::formatted( "{}:{} -> {}:{}", m_local_address, m_local_port, -- cgit v1.2.3