Fix some logging stuff

This commit is contained in:
RichardG867
2021-10-18 23:29:30 -03:00
parent 77244eda3e
commit 8dd26d5776
2 changed files with 4 additions and 4 deletions

View File

@@ -303,10 +303,10 @@ piix_trap_update_devctl(piix_t *dev, uint8_t trap_id, uint8_t dev_id,
trap->en_mask = devctl_mask;
}
//#ifdef ENABLE_PIIX_LOG
#ifdef ENABLE_PIIX_LOG
if ((dev_id == 9) || (dev_id == 10) || (dev_id == 12) || (dev_id == 13))
pclog("PIIX: Mapping trap device %d to %04X-%04X (enable %d)\n", dev_id, addr, addr + size - 1, enable);
//#endif
piix_log("PIIX: Mapping trap device %d to %04X-%04X (enable %d)\n", dev_id, addr, addr + size - 1, enable);
#endif
/* Remap I/O trap. */
io_trap_remap(trap->trap, enable, addr, size);