Skip to content

Commit

Permalink
prefer std::format over fmt
Browse files Browse the repository at this point in the history
Use std::format and remove the dependency on fmt.

Signed-off-by: Patrick Williams <[email protected]>
Change-Id: I2d25b542c03c213727d872c5d36114fc59efc8fc
  • Loading branch information
williamspatrick committed Feb 14, 2024
1 parent 9c6fa9b commit 4cf521e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mmc/item_updater_mmc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
#include "utils.hpp"
#include "version.hpp"

#include <fmt/core.h>

#include <phosphor-logging/log.hpp>

#include <filesystem>
#include <format>
#include <iostream>
#include <thread>

Expand Down Expand Up @@ -190,7 +189,7 @@ void GardResetMMC::enableInventoryItemsHelper(const std::string& service,
catch (const sdbusplus::exception_t& e)
{
log<level::ERR>(
fmt::format("Failed to enable specified inventory items ex({}) "
std::format("Failed to enable specified inventory items ex({}) "
"intf({}) objpath({})",
e.what(), intf, objPath)
.c_str());
Expand Down

0 comments on commit 4cf521e

Please sign in to comment.