Minor enhancement to disk failure reporting.
authorKevin O'Connor <kevin@koconnor.net>
Sat, 21 Jun 2008 15:38:21 +0000 (11:38 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 21 Jun 2008 15:38:21 +0000 (11:38 -0400)
The ata functions return an int not a u8.

src/disk.c

index e6b82b097d2fe6bb29f921f8ed698b6480bbf830..983a392c5f56f8524cc9ef43e3af220f99cce29b 100644 (file)
@@ -105,7 +105,7 @@ basic_access(struct bregs *regs, u8 device, u16 command)
     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 @@ extended_access(struct bregs *regs, u8 device, u16 command)
 
     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 @@ extended_access(struct bregs *regs, u8 device, u16 command)
     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;