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/control/json/manager.cpp b/control/json/manager.cpp
index fe5fc0d..5121e97 100644
--- a/control/json/manager.cpp
+++ b/control/json/manager.cpp
@@ -97,7 +97,7 @@
log<level::ERR>("Error reloading configs, no changes made",
entry("LOAD_ERROR=%s", re.what()));
FlightRecorder::instance().log(
- "main", fmt::format("Error reloading configs, no changes made: {}",
+ "main", std::format("Error reloading configs, no changes made: {}",
re.what()));
}
}
@@ -539,7 +539,7 @@
{
// Log service not found for object
log<level::DEBUG>(
- fmt::format(
+ std::format(
"Unable to get service name for path {}, interface {}",
path, intf)
.c_str());