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/sensor-monitor/alarm_timestamps.hpp b/sensor-monitor/alarm_timestamps.hpp
index e25d9fc..b5889a9 100644
--- a/sensor-monitor/alarm_timestamps.hpp
+++ b/sensor-monitor/alarm_timestamps.hpp
@@ -18,8 +18,6 @@
#include "types.hpp"
-#include <fmt/format.h>
-
#include <cereal/archives/json.hpp>
#include <cereal/types/string.hpp>
#include <cereal/types/tuple.hpp>
@@ -29,6 +27,7 @@
#include <sdeventplus/utility/timer.hpp>
#include <filesystem>
+#include <format>
#include <fstream>
#include <map>
#include <tuple>
@@ -247,7 +246,7 @@
std::error_code ec;
std::filesystem::remove(path, ec);
log<level::ERR>(
- fmt::format("Unable to restore persisted times ({}, ec: {})",
+ std::format("Unable to restore persisted times ({}, ec: {})",
e.what(), ec.value())
.c_str());
}