use std::format
Remove use of fmt and replace with the std::format version.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ib89de0b3d10866276964db7b3fa8d97991df410d
diff --git a/tools/p2a.cpp b/tools/p2a.cpp
index 3cd641a..50e891d 100644
--- a/tools/p2a.cpp
+++ b/tools/p2a.cpp
@@ -21,13 +21,12 @@
#include "pci.hpp"
#include "tool_errors.hpp"
-#include <fmt/format.h>
-
#include <ipmiblob/blob_errors.hpp>
#include <stdplus/handle/managed.hpp>
#include <cstdint>
#include <cstring>
+#include <format>
#include <memory>
#include <span>
#include <string>
@@ -90,7 +89,7 @@
{
(void)inputFd.release();
throw internal::errnoException(
- fmt::format("Error opening file '{}'", input));
+ std::format("Error opening file '{}'", input));
}
fileSize = sys->getSize(input.c_str());