Skip to content

Commit

Permalink
Update logging
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Jan 23, 2024
1 parent add834c commit 202d0d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/shared_initiator/phase_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ bool PhaseExecutor::Dispatch(scsi_command cmd, span<uint8_t> cdb, span<uint8_t>
{
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:
Expand Down Expand Up @@ -107,7 +107,7 @@ bool PhaseExecutor::Dispatch(scsi_command cmd, span<uint8_t> cdb, span<uint8_t>
break;

default:
spdlog::error(string("Ignoring ") + Bus::GetPhaseName(phase) + " phase");
spdlog::error(fmt::format("Ignoring {} phase", Bus::GetPhaseName(phase)));
return false;
}

Expand Down

0 comments on commit 202d0d6

Please sign in to comment.