1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-02-16 18:30:32 +00:00

Update to latest logging.

This commit is contained in:
Thomas Harte 2024-01-19 10:41:59 -05:00
parent bdfbf779fa
commit 70a753d8a8
3 changed files with 4 additions and 3 deletions

View File

@ -13,7 +13,7 @@
namespace {
auto logger = Log::Logger(Log::Source::WDFDC);
auto logger = Log::Logger<Log::Source::WDFDC>();
}

View File

@ -347,6 +347,7 @@ template <typename Executor> class Target: public Bus::Observer, public Responde
private:
Executor executor_;
Log::Logger<Log::Source::SCSI> log_;
// Bus::Observer.
void scsi_bus_did_change(Bus *, BusState new_state, double time_since_change) final;

View File

@ -178,7 +178,7 @@ template <typename Executor> bool Target<Executor>::dispatch_command() {
#define G1(x) (0x20|x)
#define G5(x) (0xa0|x)
LOG("---Command " << PADHEX(2) << int(command_[0]) << "---");
log_.info().append("---Command %02x---", command_[0]);
switch(command_[0]) {
default: return false;
@ -278,5 +278,5 @@ template <typename Executor> void Target<Executor>::end_command() {
bus_state_ = DefaultBusState;
set_device_output(bus_state_);
LOG("---Done---");
log_.info().append("---Done---");
}