diff --git a/gms/inet_address.hh b/gms/inet_address.hh index d915391e55..9e8b931f3f 100644 --- a/gms/inet_address.hh +++ b/gms/inet_address.hh @@ -90,14 +90,6 @@ template <> struct fmt::formatter : fmt::formatter { template auto format(const ::gms::inet_address& x, FormatContext& ctx) const { - if (x.addr().is_ipv4()) { - return fmt::format_to(ctx.out(), "{}", x.addr()); - } - // print 2 bytes in a group, and use ':' as the delimiter - fmt::format_to(ctx.out(), "{:2:}", fmt_hex(x.bytes())); - if (x.addr().scope() != seastar::net::inet_address::invalid_scope) { - return fmt::format_to(ctx.out(), "%{}", x.addr().scope()); - } - return ctx.out(); + return fmt::format_to(ctx.out(), "{}", x.addr()); } };