From 58bfd2a0180165fb74b91da20f2b401f28576960 Mon Sep 17 00:00:00 2001 From: Rafal Harabien Date: Sun, 2 Oct 2011 20:09:07 +0000 Subject: [PATCH] [FREELDR] - Improve debug messages svn path=/trunk/; revision=53940 --- reactos/boot/freeldr/freeldr/arch/i386/pcdisk.c | 6 ++---- reactos/boot/freeldr/freeldr/bootmgr.c | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/reactos/boot/freeldr/freeldr/arch/i386/pcdisk.c b/reactos/boot/freeldr/freeldr/arch/i386/pcdisk.c index 0245dfc3b8a..967d100f4f9 100644 --- a/reactos/boot/freeldr/freeldr/arch/i386/pcdisk.c +++ b/reactos/boot/freeldr/freeldr/arch/i386/pcdisk.c @@ -18,8 +18,6 @@ */ #include - -#define NDEBUG #include DBG_DEFAULT_CHANNEL(DISK); @@ -127,7 +125,7 @@ static BOOLEAN PcDiskReadLogicalSectorsLBA(UCHAR DriveNumber, ULONGLONG SectorNu } // If we get here then the read failed - ERR("Disk Read Failed in LBA mode", RegsOut.b.ah); + ERR("Disk Read Failed in LBA mode: %x (DriveNumber: 0x%x SectorNumber: %I64d SectorCount: %d)\n", RegsOut.b.ah, DriveNumber, SectorNumber, SectorCount); return FALSE; } @@ -251,7 +249,7 @@ static BOOLEAN PcDiskReadLogicalSectorsCHS(UCHAR DriveNumber, ULONGLONG SectorNu // If we retried 3 times then fail if (RetryCount >= 3) { - ERR("Disk Read Failed in CHS mode, after retrying 3 times", RegsOut.b.ah); + ERR("Disk Read Failed in CHS mode, after retrying 3 times: %x\n", RegsOut.b.ah); return FALSE; } diff --git a/reactos/boot/freeldr/freeldr/bootmgr.c b/reactos/boot/freeldr/freeldr/bootmgr.c index 77b0223ff1b..6426eca0ec7 100644 --- a/reactos/boot/freeldr/freeldr/bootmgr.c +++ b/reactos/boot/freeldr/freeldr/bootmgr.c @@ -145,7 +145,7 @@ VOID RunLoader(VOID) } TimeOut = GetTimeOut(); - if (!UiInitialize(1)) + if (!UiInitialize(TRUE)) { UiMessageBoxCritical("Unable to initialize UI."); return;