use std::format instead of fmt::format
The std::format is sufficient for the uses in this repository except
for in one file (override_fan_target.cpp, since P2286 isn't supported
by GCC yet). Switch to std::format whenever possible.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ib2576fb530a4d7ce238e1b0bd95b40b476ec2107
diff --git a/presence/json_parser.cpp b/presence/json_parser.cpp
index 5de827d..70cac08 100644
--- a/presence/json_parser.cpp
+++ b/presence/json_parser.cpp
@@ -309,7 +309,7 @@
namespace sdlogging = sdbusplus::xyz::openbmc_project::Logging::server;
log<level::ERR>(
- fmt::format(
+ std::format(
"Error creating Gpio device bridge, hardware not detected: {}",
e.what())
.c_str());
@@ -331,7 +331,7 @@
}
catch (const util::DBusError& e)
{
- log<level::ERR>(fmt::format("Call to create an error log for "
+ log<level::ERR>(std::format("Call to create an error log for "
"presence-sensor failure failed: {}",
e.what())
.c_str());