]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/os: specialize fmt::formater<> for lba_pin_list_t
authorKefu Chai <tchaikov@gmail.com>
Wed, 14 Dec 2022 11:09:49 +0000 (19:09 +0800)
committerKefu Chai <tchaikov@gmail.com>
Wed, 14 Dec 2022 11:14:16 +0000 (19:14 +0800)
since fmt v9, fmt::formatter<> is not specialized for the types with
operator<<(ostream&, ...) anymore. so we need to specialize it manually.
in this change, fmt::formatter<lba_pin_list_t> is defined so
the tree can compile with fmt v9.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/crimson/os/seastore/cached_extent.h

index e7b85e7fcd61c2017551eb80a15153f5f0de1507..29cfd687ae34a414d54c8d059a61e5372201826f 100644 (file)
@@ -956,6 +956,7 @@ using lextent_list_t = addr_extent_list_base_t<
 }
 
 #if FMT_VERSION >= 90000
+template <> struct fmt::formatter<crimson::os::seastore::lba_pin_list_t> : fmt::ostream_formatter {};
 template <> struct fmt::formatter<crimson::os::seastore::CachedExtent> : fmt::ostream_formatter {};
 template <> struct fmt::formatter<crimson::os::seastore::LogicalCachedExtent> : fmt::ostream_formatter {};
 template <> struct fmt::formatter<crimson::os::seastore::LBAPin> : fmt::ostream_formatter {};