treewide: Convert most fmt::format -> std::format
Change-Id: I3c9ac1eed1c86c6cd9f7fd3a1ba356734e79f937
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/system_queries.cpp b/src/system_queries.cpp
index f58493a..17dd09a 100644
--- a/src/system_queries.cpp
+++ b/src/system_queries.cpp
@@ -2,7 +2,6 @@
#include "netlink.hpp"
-#include <fmt/format.h>
#include <linux/ethtool.h>
#include <linux/rtnetlink.h>
#include <linux/sockios.h>
@@ -14,6 +13,7 @@
#include <stdplus/util/cexec.hpp>
#include <algorithm>
+#include <format>
#include <optional>
#include <stdexcept>
#include <string_view>
@@ -126,7 +126,7 @@
err = netlink::extractRtData<nlmsgerr>(data).error;
}
throw std::runtime_error(
- fmt::format("Failed to delete `{}`: {}", idx, strerror(err)));
+ std::format("Failed to delete `{}`: {}", idx, strerror(err)));
});
}