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/gpio.cpp b/presence/gpio.cpp
index 8e4a6d2..ceba1c6 100644
--- a/presence/gpio.cpp
+++ b/presence/gpio.cpp
@@ -109,7 +109,7 @@
ad.emplace("GPIO_DEVICE_PATH", (phys.c_str()));
getLogger().log(
- fmt::format("GPIO presence detect for fan {} said not present but "
+ std::format("GPIO presence detect for fan {} said not present but "
"other methods indicated present",
fanInventoryPath));
try
@@ -121,7 +121,7 @@
catch (const util::DBusError& e)
{
getLogger().log(
- fmt::format("Call to create a {} error for fan {} failed: {}",
+ std::format("Call to create a {} error for fan {} failed: {}",
errorName, fanInventoryPath, e.what()),
Logger::error);
}