mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-23 19:58:06 +11:00
tools/emul: add hex representation to debug output
My mind isn't so good at decimal -> hex translations. It helps to have this...
This commit is contained in:
parent
082fa3431d
commit
7ae29015de
@ -103,7 +103,7 @@ static void io_write(int unused, uint16_t addr, uint8_t val)
|
||||
} else if (addr == FS_SEEKE_PORT) {
|
||||
fsdev_ptr = (fsdev_ptr & 0x00ffff) | (val << 16);
|
||||
} else {
|
||||
fprintf(stderr, "Out of bounds I/O write: %d / %d\n", addr, val);
|
||||
fprintf(stderr, "Out of bounds I/O write: %d / %d (0x%x)\n", addr, val, val);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -140,7 +140,7 @@ static void io_write(int unused, uint16_t addr, uint8_t val)
|
||||
} else if (addr == STDERR_PORT) {
|
||||
fputc(val, stderr);
|
||||
} else {
|
||||
fprintf(stderr, "Out of bounds I/O write: %d / %d\n", addr, val);
|
||||
fprintf(stderr, "Out of bounds I/O write: %d / %d (0x%x)\n", addr, val, val);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user