mirror of
https://github.com/akuker/RASCSI.git
synced 2024-12-21 23:29:39 +00:00
Reduce logging in controller (#1332)
This commit is contained in:
parent
9ce1bce592
commit
a164340179
@ -178,13 +178,15 @@ void ScsiController::Command()
|
|||||||
|
|
||||||
void ScsiController::Execute()
|
void ScsiController::Execute()
|
||||||
{
|
{
|
||||||
|
if (spdlog::get_level() == spdlog::level::trace) {
|
||||||
stringstream s;
|
stringstream s;
|
||||||
s << "Controller is executing " << command_mapping.find(GetOpcode())->second.second << ", CDB $"
|
s << "Controller is executing " << command_mapping.find(GetOpcode())->second.second << ", CDB $"
|
||||||
<< setfill('0') << hex;
|
<< setfill('0') << hex;
|
||||||
for (int i = 0; i < BUS::GetCommandByteCount(static_cast<uint8_t>(GetOpcode())); i++) {
|
for (int i = 0; i < BUS::GetCommandByteCount(static_cast<uint8_t>(GetOpcode())); i++) {
|
||||||
s << setw(2) << GetCmdByte(i);
|
s << setw(2) << GetCmdByte(i);
|
||||||
}
|
}
|
||||||
LogDebug(s.str());
|
LogTrace(s.str());
|
||||||
|
}
|
||||||
|
|
||||||
// Initialization for data transfer
|
// Initialization for data transfer
|
||||||
ResetOffset();
|
ResetOffset();
|
||||||
|
Loading…
Reference in New Issue
Block a user