switch fmt::format to use std::format
The fmt::format is supported directly in std now. Swap it out and
remove the unnecessary dependency.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ie278c6328239928198fd87f5007468d401e44a21
diff --git a/watchdog/watchdog_main.cpp b/watchdog/watchdog_main.cpp
index 00f7830..7ad1ced 100644
--- a/watchdog/watchdog_main.cpp
+++ b/watchdog/watchdog_main.cpp
@@ -1,4 +1,4 @@
-#include <fmt/format.h>
+#include <format>
extern "C"
{
#include <libpdbg.h>
@@ -71,7 +71,7 @@
}
catch (const std::exception& e)
{
- log<level::ERR>(fmt::format("getLocationCode({}): Exception({})",
+ log<level::ERR>(std::format("getLocationCode({}): Exception({})",
pdbg_target_path(procTarget), e.what())
.c_str());
}
@@ -93,7 +93,7 @@
{
// Failed to collect FFDC information
log<level::ERR>(
- fmt::format("captureFFDC: Exception{}", e.what()).c_str());
+ std::format("captureFFDC: Exception{}", e.what()).c_str());
dumpIsRequired = true;
}
@@ -157,7 +157,7 @@
catch (const std::exception& e)
{
log<level::ERR>(
- fmt::format("Skipping SBE special callout due to Exception({})",
+ std::format("Skipping SBE special callout due to Exception({})",
e.what())
.c_str());
}
@@ -182,7 +182,7 @@
catch (const std::exception& e)
{
log<level::ERR>(
- fmt::format("Exception {} occurred", e.what()).c_str());
+ std::format("Exception {} occurred", e.what()).c_str());
return;
}