From d1b638d15fb83e714d5248d094ebe7b02d047d6f Mon Sep 17 00:00:00 2001 From: Yingxin Cheng Date: Wed, 12 Oct 2022 13:37:56 +0800 Subject: [PATCH] crimson/net: print connection memory address as the identity Signed-off-by: Yingxin Cheng --- src/crimson/net/SocketConnection.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/crimson/net/SocketConnection.cc b/src/crimson/net/SocketConnection.cc index 65ab399156b..f8664a9f711 100644 --- a/src/crimson/net/SocketConnection.cc +++ b/src/crimson/net/SocketConnection.cc @@ -143,6 +143,7 @@ seastar::socket_address SocketConnection::get_local_address() const { } void SocketConnection::print(ostream& out) const { + out << (void*)this << " "; messenger.print(out); if (!protocol->socket) { out << " >> " << get_peer_name() << " " << peer_addr; -- 2.39.5