prefer std::format over fmt
Switch to std::format to remove the dependency on fmt.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Id3a1295ba8a90fb756cfc500892dcc5b3235e27b
diff --git a/occ_dbus.cpp b/occ_dbus.cpp
index 811f1ab..fb2ff27 100644
--- a/occ_dbus.cpp
+++ b/occ_dbus.cpp
@@ -2,10 +2,9 @@
#include "utils.hpp"
-#include <fmt/core.h>
-
#include <phosphor-logging/log.hpp>
+#include <format>
#include <iostream>
namespace open_power
@@ -215,7 +214,7 @@
paths.end())
{
log<level::ERR>(
- fmt::format(
+ std::format(
"Could not find a chassis out of {} chassis objects",
paths.size())
.c_str());
@@ -227,7 +226,7 @@
catch (const std::exception& e)
{
log<level::ERR>(
- fmt::format("Error looking up chassis objects: {}", e.what())
+ std::format("Error looking up chassis objects: {}", e.what())
.c_str());
abort();
}