remove use of fmt
All uses of fmt can be replaced with either std::format directly
or a tentative implementation of std::print (which we can use
until GCC supports std::print). Remove the extra dependency.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I466497695a6d53b7767a6456bebe165c5a75121a
diff --git a/src/server.cpp b/src/server.cpp
index 5b41c05..4ac4929 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -1,6 +1,7 @@
#include "server.hpp"
-#include <fmt/format.h>
+#include "print.hpp"
+
#include <linux/ipmi_bmc.h>
#include <sdbusplus/exception.hpp>
@@ -8,6 +9,7 @@
#include <sdbusplus/vtable.hpp>
#include <stdplus/fd/ops.hpp>
+#include <cstdio>
#include <stdexcept>
namespace kcsbridge
@@ -41,7 +43,7 @@
}
catch (const std::exception& e)
{
- fmt::print(stderr, "Method response failed: {}\n", e.what());
+ std::print(stderr, "Method response failed: {}\n", e.what());
sd_bus_error_set(error,
"xyz.openbmc_project.Common.Error.InternalFailure",
"The operation failed internally.");