[syslinux:master] memdisk/dskprobe: Be consistent in debug output
syslinux-bot for Gene Cumm
gene.cumm at gmail.com
Fri Apr 1 15:54:38 PDT 2011
Commit-ID: 3f89c31e8e44088892bb5f3ed05113525028e369
Gitweb: http://syslinux.zytor.com/commit/3f89c31e8e44088892bb5f3ed05113525028e369
Author: Gene Cumm <gene.cumm at gmail.com>
AuthorDate: Wed, 26 Jan 2011 21:53:06 -0500
Committer: Gene Cumm <gene.cumm at gmail.com>
CommitDate: Wed, 26 Jan 2011 21:53:06 -0500
memdisk/dskprobe: Be consistent in debug output
Only probe_int13h_15h() showed the AH01h output; show it in the others also
---
memdisk/dskprobe.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/memdisk/dskprobe.c b/memdisk/dskprobe.c
index afceb19..c2a85e8 100644
--- a/memdisk/dskprobe.c
+++ b/memdisk/dskprobe.c
@@ -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;
}
More information about the Syslinux-commits
mailing list