]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/admin/osd_admin: avoid using _format()
authorKefu Chai <tchaikov@gmail.com>
Tue, 1 Mar 2022 16:01:37 +0000 (00:01 +0800)
committerKefu Chai <tchaikov@gmail.com>
Tue, 1 Mar 2022 16:31:14 +0000 (00:31 +0800)
see also 3fd91d7e6d9315244aeff02070721ef4a021b0b3

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

index 97c7f9a29921dfb8e11a624384d28295ecce67ab..b42fcffdc617448a9647ef63b36fa66706e6ec90 100644 (file)
@@ -298,9 +298,8 @@ static ghobject_t test_ops_get_object_name(
     }
     if (pool < 0) {
       // the return type of `fmt::format` is `std::string`
-      using namespace fmt::literals;
       throw std::invalid_argument{
-        "Invalid pool '{}'"_format(*pool_arg)
+        fmt::format("Invalid pool '{}'", *pool_arg)
       };
     }
     return pool;