updated loggingsystem
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@989
This commit is contained in:
parent
72d44cbc16
commit
bbb7cf45b0
44 changed files with 208 additions and 201 deletions
|
@ -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_ERROR,"IO:Out or range write %X2 to port %4X",val,num);
|
||||
else LOG(LOG_ALL,LOG_ERROR)("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_ERROR,"IO:Out or range read from port %4X",num);
|
||||
else LOG(LOG_ALL,LOG_ERROR)("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_ERROR,"Reading from undefined port %04X",port);
|
||||
LOG(LOG_ALL,LOG_ERROR)("Reading from undefined port %04X",port);
|
||||
IO_RegisterReadHandler(port,&IO_ReadBlocked,"Blocked Read");
|
||||
return 0xff;
|
||||
}
|
||||
|
||||
void IO_WriteDefault(Bit32u port,Bit8u val) {
|
||||
LOG(LOG_ERROR,"Writing %02X to undefined port %04X",val,port);
|
||||
LOG(LOG_ALL,LOG_ERROR)("Writing %02X to undefined port %04X",static_cast<Bit32u>(val),port);
|
||||
IO_RegisterWriteHandler(port,&IO_WriteBlocked,"Blocked Write");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue