Skip to content

Commit 0fee0a5

Browse files
control: reduce logging noise.
Mac OS 7.5.5 accesses the monitor sense register many times. This causes a huge amount of pointless log messages. This commit changes priority of the log messages for the monitor sense registers so none will be displayed by default.
1 parent 60d4750 commit 0fee0a5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

devices/video/control.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ uint32_t ControlVideo::read(uint32_t rgn_start, uint32_t offset, int size)
321321
break;
322322
case ControlRegs::MON_SENSE:
323323
value = (this->cur_mon_id << 6) | this->mon_sense;
324-
LOG_F(CONTROL, "%s: read MON_SENSE %03x.%c = %0*x", this->name.c_str(),
324+
LOG_F(9, "%s: read MON_SENSE %03x.%c = %0*x", this->name.c_str(),
325325
offset, SIZE_ARG(size), size * 2, value);
326326
break;
327327
case ControlRegs::MISC_ENABLES:
@@ -521,7 +521,7 @@ void ControlVideo::write(uint32_t rgn_start, uint32_t offset, uint32_t value, in
521521
LOG_F(ERROR, "%s: write MON_SENSE %03x.%c = %0*x", this->name.c_str(),
522522
offset, SIZE_ARG(size), size * 2, value);
523523
else
524-
LOG_F(CONTROL, "%s: write MON_SENSE %03x.%c = %0*x", this->name.c_str(),
524+
LOG_F(9, "%s: write MON_SENSE %03x.%c = %0*x", this->name.c_str(),
525525
offset, SIZE_ARG(size), size * 2, value);
526526
uint8_t dirs = ((value >> 3) & 7) ^ 7;
527527
uint8_t levels = ((value & 7) & dirs) | (dirs ^ 7);

0 commit comments

Comments
 (0)