From 36fc37eb618bb04d6543097df07c2ac09c0d79db Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 2 Mar 2022 00:01:37 +0800 Subject: [PATCH] crimson/admin/osd_admin: avoid using _format() see also 3fd91d7e6d9315244aeff02070721ef4a021b0b3 Signed-off-by: Kefu Chai --- src/crimson/admin/osd_admin.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.39.5