} // namespace anonymous
+namespace fmt {
+
+template <typename T> auto ptr(const ::seastar::shared_ptr<T>& p) -> const void* {
+ return p.get();
+}
+
+}
namespace crimson::net {
#ifdef UNIT_TESTS_BUILT
" found existing {}(state={}, gs={}, pgs={}, cs={}, cc={}, sc={})",
conn, global_seq, peer_global_seq, connect_seq,
client_cookie, server_cookie,
- existing_conn, get_state_name(existing_proto->state),
+ fmt::ptr(existing_conn), get_state_name(existing_proto->state),
existing_proto->global_seq,
existing_proto->peer_global_seq,
existing_proto->connect_seq,
if (!validate_peer_name(existing_conn->get_peer_name())) {
logger().error("{} server_connect: my peer_name doesn't match"
- " the existing connection {}, abort", conn, existing_conn);
+ " the existing connection {}, abort", conn, fmt::ptr(existing_conn));
abort_in_fault();
}
" found existing {}(state={}, gs={}, pgs={}, cs={}, cc={}, sc={})",
conn, global_seq, peer_global_seq, reconnect.connect_seq(),
reconnect.client_cookie(), reconnect.server_cookie(),
- existing_conn,
+ fmt::ptr(existing_conn),
get_state_name(existing_proto->state),
existing_proto->global_seq,
existing_proto->peer_global_seq,
if (!validate_peer_name(existing_conn->get_peer_name())) {
logger().error("{} server_reconnect: my peer_name doesn't match"
- " the existing connection {}, abort", conn, existing_conn);
+ " the existing connection {}, abort", conn, fmt::ptr(existing_conn));
abort_in_fault();
}