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_device.cpp b/occ_device.cpp
index c83b1ff..ded5db9 100644
--- a/occ_device.cpp
+++ b/occ_device.cpp
@@ -25,7 +25,7 @@
}
catch (const std::exception& e)
{
- log<level::ERR>(fmt::format("Failed to set {} active: {}",
+ log<level::ERR>(std::format("Failed to set {} active: {}",
devPath.c_str(), e.what())
.c_str());
}
@@ -152,7 +152,7 @@
catch (const fs::filesystem_error& e)
{
log<level::ERR>(
- fmt::format("getFilenameByRegex: Failed to get filename: {}",
+ std::format("getFilenameByRegex: Failed to get filename: {}",
e.what())
.c_str());
}