mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-20 14:29:11 +00:00
Update to latest logging.
This commit is contained in:
parent
bdfbf779fa
commit
70a753d8a8
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
auto logger = Log::Logger(Log::Source::WDFDC);
|
auto logger = Log::Logger<Log::Source::WDFDC>();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -347,6 +347,7 @@ template <typename Executor> class Target: public Bus::Observer, public Responde
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
Executor executor_;
|
Executor executor_;
|
||||||
|
Log::Logger<Log::Source::SCSI> log_;
|
||||||
|
|
||||||
// Bus::Observer.
|
// Bus::Observer.
|
||||||
void scsi_bus_did_change(Bus *, BusState new_state, double time_since_change) final;
|
void scsi_bus_did_change(Bus *, BusState new_state, double time_since_change) final;
|
||||||
|
@ -178,7 +178,7 @@ template <typename Executor> bool Target<Executor>::dispatch_command() {
|
|||||||
#define G1(x) (0x20|x)
|
#define G1(x) (0x20|x)
|
||||||
#define G5(x) (0xa0|x)
|
#define G5(x) (0xa0|x)
|
||||||
|
|
||||||
LOG("---Command " << PADHEX(2) << int(command_[0]) << "---");
|
log_.info().append("---Command %02x---", command_[0]);
|
||||||
|
|
||||||
switch(command_[0]) {
|
switch(command_[0]) {
|
||||||
default: return false;
|
default: return false;
|
||||||
@ -278,5 +278,5 @@ template <typename Executor> void Target<Executor>::end_command() {
|
|||||||
bus_state_ = DefaultBusState;
|
bus_state_ = DefaultBusState;
|
||||||
set_device_output(bus_state_);
|
set_device_output(bus_state_);
|
||||||
|
|
||||||
LOG("---Done---");
|
log_.info().append("---Done---");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user