prefer std::format over fmt
Since C++20, std::format has existed so prefer that. For the single
fmt::print call we can use stdplus::print until GCC supports the std
one.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I4c8af58966fb7330dee20fb13ae2ef11d8a823c7
diff --git a/sensor.cpp b/sensor.cpp
index 0b3ca66..72d7821 100644
--- a/sensor.cpp
+++ b/sensor.cpp
@@ -8,8 +8,6 @@
#include "sensorset.hpp"
#include "sysfs.hpp"
-#include <fmt/format.h>
-
#include <phosphor-logging/elog-errors.hpp>
#include <xyz/openbmc_project/Common/error.hpp>
#include <xyz/openbmc_project/Sensor/Device/error.hpp>
@@ -19,6 +17,7 @@
#include <cmath>
#include <cstring>
#include <filesystem>
+#include <format>
#include <future>
#include <thread>
@@ -246,7 +245,7 @@
metadata::CALLOUT_ERRNO(e.code().value()),
metadata::CALLOUT_DEVICE_PATH(_devPath.c_str()));
- log<level::INFO>(fmt::format("Failing sysfs file: {} errno {}",
+ log<level::INFO>(std::format("Failing sysfs file: {} errno {}",
sysfsFullPath, e.code().value())
.c_str());
}