]> 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>
Mon, 15 Aug 2022 16:55:07 +0000 (00:55 +0800)
see also 3fd91d7e6d9315244aeff02070721ef4a021b0b3

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit 36fc37eb618bb04d6543097df07c2ac09c0d79db)

src/crimson/admin/osd_admin.cc

index e8320458834773f0eb04333a8903bb6632522cfb..faba5939cf0d1ccdcc04287bbe83fd6488fb35e2 100644 (file)
@@ -297,9 +297,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;