From: Kefu Chai Date: Tue, 1 Mar 2022 16:01:37 +0000 (+0800) Subject: crimson/admin/osd_admin: avoid using _format() X-Git-Tag: v18.0.0~1321^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=36fc37eb618bb04d6543097df07c2ac09c0d79db;p=ceph.git crimson/admin/osd_admin: avoid using _format() see also 3fd91d7e6d9315244aeff02070721ef4a021b0b3 Signed-off-by: Kefu Chai --- diff --git a/src/crimson/admin/osd_admin.cc b/src/crimson/admin/osd_admin.cc index 97c7f9a2992..b42fcffdc61 100644 --- a/src/crimson/admin/osd_admin.cc +++ b/src/crimson/admin/osd_admin.cc @@ -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;