]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/crimson: print pointer using fmt::ptr()
authorKefu Chai <tchaikov@gmail.com>
Thu, 15 Dec 2022 07:26:46 +0000 (15:26 +0800)
committerKefu Chai <tchaikov@gmail.com>
Fri, 16 Dec 2022 02:37:25 +0000 (10:37 +0800)
in fmtlib v9, it does not format typed pointers anymore, instead,
we need to print them using fmt::ptr().

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

index dd5eea42cc2a1945e4a1436ba820fbb73a17c9b5..6409ffa7990db0419844a4d3509d455a4feca623 100644 (file)
@@ -1615,7 +1615,8 @@ class FailoverTestPeer : public Dispatcher {
       ceph_assert(test_suite);
       return test_suite->markdown();
      default:
-      logger().error("TestPeer got unexpected command {} from Test", m_cmd);
+      logger().error("TestPeer got unexpected command {} from Test",
+                    fmt::ptr(m_cmd.get()));
       ceph_abort();
       return seastar::now();
     }