diff --git a/cpp/shared_initiator/phase_executor.cpp b/cpp/shared_initiator/phase_executor.cpp index d1f8e224..446ab2a6 100644 --- a/cpp/shared_initiator/phase_executor.cpp +++ b/cpp/shared_initiator/phase_executor.cpp @@ -78,7 +78,7 @@ bool PhaseExecutor::Dispatch(scsi_command cmd, span cdb, span { const phase_t phase = bus.GetPhase(); - spdlog::trace(string("Handling ") + Bus::GetPhaseName(phase) + " phase"); + spdlog::trace(fmt::format("Handling {} phase", Bus::GetPhaseName(phase))); switch (phase) { case phase_t::command: @@ -107,7 +107,7 @@ bool PhaseExecutor::Dispatch(scsi_command cmd, span cdb, span break; default: - spdlog::error(string("Ignoring ") + Bus::GetPhaseName(phase) + " phase"); + spdlog::error(fmt::format("Ignoring {} phase", Bus::GetPhaseName(phase))); return false; }