Log load/eject on error level for testing

This commit is contained in:
Uwe Seimet 2021-09-10 20:34:37 +02:00
parent 4884ff0af4
commit d35a15ea8e
1 changed files with 4 additions and 2 deletions

View File

@ -1284,11 +1284,13 @@ bool Disk::StartStop(const DWORD *cdb)
bool start = cdb[4] & 0x01;
bool load = cdb[4] & 0x02;
LOGERROR("$%02X %d %d", cdb[4], start, load);
if (load) {
LOGTRACE("%s", start ? "Loading medium" : "Ejecting medium");
LOGERROR("%s", start ? "Loading medium" : "Ejecting medium");
}
else {
LOGTRACE("%s", start ? "Starting unit" : "Stopping unit");
LOGERROR("%s", start ? "Starting unit" : "Stopping unit");
SetStopped(!start);
}