From 202d0d63e15d24c666d4b00bf7e1c654c6e439a8 Mon Sep 17 00:00:00 2001 From: Uwe Seimet Date: Tue, 23 Jan 2024 20:52:32 +0100 Subject: [PATCH] Update logging --- cpp/shared_initiator/phase_executor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }