]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/net: print entity_addr_t not the in4_addr in it
authorKefu Chai <kchai@redhat.com>
Wed, 9 Sep 2020 02:24:09 +0000 (10:24 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 9 Sep 2020 05:27:25 +0000 (13:27 +0800)
commitce8b544b987cd86f64ef415d1cef77baf806a524
treec989058229e79005964958af3ecf26bda1429249
parent6e7cc5b2c4281c59a45c08b0206b1d42580c43bb
crimson/net: print entity_addr_t not the in4_addr in it

for two reasons:

* we don't have operator<<(ostream&, in4_addr&) defined.
* we don't have any fmt::format() facility specialized for in4_addr
* to print entity_addr_t instead of in4_addr is more correct in
  the sense that we should support IPv6

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/net/SocketMessenger.cc