1
0
Fork 0

Update log messages to be warnings

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1011
This commit is contained in:
Sjoerd van der Berg 2003-05-20 15:44:21 +00:00
parent d1444fe09a
commit 12f1965cb4

View file

@ -24,12 +24,12 @@ IO_WriteBlock IO_WriteTable[IO_MAX];
void IO_Write(Bitu num,Bit8u val) {
if (num<IO_MAX) IO_WriteTable[num].handler(num,val);
else LOG(LOG_ALL,LOG_ERROR)("IO:Out or range write %X2 to port %4X",val,num);
else LOG(LOG_IO,LOG_WARN)("IO:Out or range write %X2 to port %4X",val,num);
}
Bit8u IO_Read(Bitu num) {
if (num<IO_MAX) return IO_ReadTable[num].handler(num);
else LOG(LOG_ALL,LOG_ERROR)("IO:Out or range read from port %4X",num);
else LOG(LOG_IO,LOG_WARN)("IO:Out or range read from port %4X",num);
return 0xff;
}
@ -42,13 +42,13 @@ static void IO_WriteBlocked(Bit32u port,Bit8u val) {
}
static Bit8u IO_ReadDefault(Bit32u port) {
LOG(LOG_IO,LOG_ERROR)("Reading from undefined port %04X",port);
LOG(LOG_IO,LOG_WARN)("Reading from undefined port %04X",port);
IO_RegisterReadHandler(port,&IO_ReadBlocked,"Blocked Read");
return 0xff;
}
void IO_WriteDefault(Bit32u port,Bit8u val) {
LOG(LOG_IO,LOG_ERROR)("Writing %02X to undefined port %04X",static_cast<Bit32u>(val),port);
LOG(LOG_IO,LOG_WARN)("Writing %02X to undefined port %04X",static_cast<Bit32u>(val),port);
IO_RegisterWriteHandler(port,&IO_WriteBlocked,"Blocked Write");
}