Minor enhancement to disk failure reporting.
The ata functions return an int not a u8.
diff --git a/src/disk.c b/src/disk.c
index e6b82b0..983a392 100644
--- a/src/disk.c
+++ b/src/disk.c
@@ -105,7 +105,7 @@
regs->al = GET_EBDA(ata.trsfsectors);
if (status != 0) {
- dprintf(1, "int13_harddisk: function %02x, error %02x !\n"
+ dprintf(1, "int13_harddisk: function %02x, error %d!\n"
, regs->ah, status);
disk_ret(regs, DISK_RET_EBADTRACK);
}
@@ -139,7 +139,7 @@
irq_enable();
- u8 status;
+ int status;
if (type == ATA_TYPE_ATA)
status = ata_cmd_data(device, command, lba, count, far_buffer);
else
@@ -150,7 +150,7 @@
SET_INT13EXT(regs, count, GET_EBDA(ata.trsfsectors));
if (status != 0) {
- dprintf(1, "int13_harddisk: function %02x, error %02x !\n"
+ dprintf(1, "int13_harddisk: function %02x, error %d!\n"
, regs->ah, status);
disk_ret(regs, DISK_RET_EBADTRACK);
return;