- print which unknown hard drive command causes a panic

This commit is contained in:
Bryce Denney 2001-04-10 02:33:27 +00:00
parent 79bef1a5bf
commit 417e4c01ec

View File

@ -498,7 +498,7 @@ bx_hard_drive_c::read(Bit32u address, unsigned io_len)
value8 = BX_SELECTED_CONTROLLER.sector_count;
goto return_value8;
}
bx_panic("disk: IO read(0x1f2): current command not read/write\n");
bx_panic("disk: IO read(0x1f2): current command (0x%2x) not read/write\n", BX_SELECTED_CONTROLLER.current_command);
break;
case 0x1f3: // sector number