memdisk/dskprobe: Be consistent in debug output
authorGene Cumm <gene.cumm@gmail.com>
Thu, 27 Jan 2011 02:53:06 +0000 (21:53 -0500)
committerGene Cumm <gene.cumm@gmail.com>
Thu, 27 Jan 2011 02:53:06 +0000 (21:53 -0500)
Only probe_int13h_15h() showed the AH01h output; show it in the others also

memdisk/dskprobe.c

index afceb19..c2a85e8 100644 (file)
@@ -86,6 +86,7 @@ static int probe_int13h_01h(uint8_t drive)
 static int probe_int13h_08h(uint8_t drive, com32sys_t * regs)
 {
     int present;
+    int status;
 
     memset(regs, 0, sizeof *regs);
     probe_any(0x08, drive, regs);
@@ -93,6 +94,7 @@ static int probe_int13h_08h(uint8_t drive, com32sys_t * regs)
                    regs->eflags.l & 1, regs->eax.b[1], regs->eax.b[0],
                    regs->ebx.b[0], regs->edx.b[0]);
     present = !(regs->eflags.l & 1) && !regs->eax.b[1];
+    status = probe_int13h_01h(drive);
     dskprobe_printf("  P%d\n",  present);
     return present;
 }
@@ -123,6 +125,7 @@ static int probe_int13h_15h(uint8_t drive, com32sys_t * regs)
 static int probe_int13h_41h(uint8_t drive, com32sys_t * regs)
 {
     int present;
+    int status;
 
     memset(regs, 0, sizeof *regs);
     regs->ebx.w[0] = 0x55AA;   /* BX == 0x55AA */
@@ -131,6 +134,7 @@ static int probe_int13h_41h(uint8_t drive, com32sys_t * regs)
                    regs->eflags.l & 1, regs->ebx.w[0], regs->eax.b[1],
                    regs->edx.b[1]);
     present = !(regs->eflags.l & 1) && (regs->ebx.w[0] == 0xAA55);
+    status = probe_int13h_01h(drive);
     dskprobe_printf("  P%d\n",  present);
     return present;
 }