summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCore/SocketAddress.h
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2021-01-15 21:46:23 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-22 22:14:30 +0100
commit9229ba0fe9b04a7eab116925ecdee4797815281d (patch)
tree2c9cb9724afebafb545f6e79cfcd62bb0c40f3c5 /Userland/Libraries/LibCore/SocketAddress.h
parent27bc48e06cf54cb826fd8dd46edd9331650f3a63 (diff)
downloadserenity-9229ba0fe9b04a7eab116925ecdee4797815281d.zip
Everywhere: Replace a bundle of dbg with dbgln.
These changes are arbitrarily divided into multiple commits to make it easier to find potentially introduced bugs with git bisect.
Diffstat (limited to 'Userland/Libraries/LibCore/SocketAddress.h')
-rw-r--r--Userland/Libraries/LibCore/SocketAddress.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Userland/Libraries/LibCore/SocketAddress.h b/Userland/Libraries/LibCore/SocketAddress.h
index 717f4e8fd3..4a5334225b 100644
--- a/Userland/Libraries/LibCore/SocketAddress.h
+++ b/Userland/Libraries/LibCore/SocketAddress.h
@@ -113,3 +113,11 @@ private:
const LogStream& operator<<(const LogStream&, const SocketAddress&);
}
+
+template<>
+struct AK::Formatter<Core::SocketAddress> : Formatter<String> {
+ void format(FormatBuilder& builder, const Core::SocketAddress& value)
+ {
+ return Formatter<String>::format(builder, value.to_string());
+ }
+};