]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os: print the value of optional<>
authorKefu Chai <tchaikov@gmail.com>
Tue, 22 Nov 2022 12:35:59 +0000 (20:35 +0800)
committerKefu Chai <tchaikov@gmail.com>
Tue, 22 Nov 2022 13:04:28 +0000 (21:04 +0800)
if an optional is known to have value, we can just print its value.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/crimson/os/seastore/omap_manager/btree/omap_btree_node_impl.cc

index 9711006d8569e546ae78b2eb42ff76efc3ac8e96..6d6a2570007f90683caf563214f93d6048004b03 100644 (file)
@@ -200,7 +200,7 @@ OMapInnerNode::list(
 {
   LOG_PREFIX(OMapInnerNode::list);
   if (start) {
-    DEBUGT("start={}, this: {}", oc.t, start, *this);
+    DEBUGT("start={}, this: {}", oc.t, *start, *this);
   } else {
     DEBUGT("this: {}", oc.t, *this);
   }