]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/net: print shared_ptr using fmt::ptr()
authorKefu Chai <tchaikov@gmail.com>
Tue, 22 Nov 2022 04:06:33 +0000 (12:06 +0800)
committerKefu Chai <tchaikov@gmail.com>
Tue, 22 Nov 2022 05:54:41 +0000 (13:54 +0800)
commit42dc970392e8c49fde46aae66ce8ef81ff00d49c
tree91d52f3fd6096d25658cf5e623fddce5303bdf47
parent8c118d630efa2e129cdfd9835c816eb040af3d2d
crimson/net: print shared_ptr using fmt::ptr()

in {fmt} v9, only `void*` pointers can be printed directly. when it
comes to typed pointer or smart pointers, we need to print them using
`fmt::ptr()`. in this change, an overload is added so we can print
`seastar::shared_ptr<>` via `fmt::ptr()` as well, just like how we
print `std::shared_ptr<>`.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/crimson/net/ProtocolV2.cc