PEL: switch fmt::format to use std::format
fmt::format is supported in the c++ std. This will
help to remove fmt package dependency.
Change-Id: I89f0a5b67bbfe54168a20e93c989a1ae87f54503
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
diff --git a/extensions/openpower-pels/manager.cpp b/extensions/openpower-pels/manager.cpp
index 0a23e42..29fe67e 100644
--- a/extensions/openpower-pels/manager.cpp
+++ b/extensions/openpower-pels/manager.cpp
@@ -23,7 +23,6 @@
#include "service_indicators.hpp"
#include "severity.hpp"
-#include <fmt/format.h>
#include <sys/inotify.h>
#include <unistd.h>
@@ -32,6 +31,7 @@
#include <xyz/openbmc_project/Logging/Create/server.hpp>
#include <filesystem>
+#include <format>
#include <fstream>
#include <locale>
@@ -646,7 +646,7 @@
// Throws InvalidArgument if not found
auto pelID = getPELIdFromBMCLogId(obmcLogID);
- auto cmd = fmt::format("/usr/bin/peltool -i {:#x}", pelID);
+ auto cmd = std::format("/usr/bin/peltool -i {:#x}", pelID);
FILE* pipe = popen(cmd.c_str(), "r");
if (!pipe)