[ros-diffs] [rharabien] 53940: [FREELDR] - Improve debug messages

rharabien at svn.reactos.org rharabien at svn.reactos.org
Sun Oct 2 20:09:08 UTC 2011


Author: rharabien
Date: Sun Oct  2 20:09:07 2011
New Revision: 53940

URL: http://svn.reactos.org/svn/reactos?rev=53940&view=rev
Log:
[FREELDR] - Improve debug messages

Modified:
    trunk/reactos/boot/freeldr/freeldr/arch/i386/pcdisk.c
    trunk/reactos/boot/freeldr/freeldr/bootmgr.c

Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/pcdisk.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/i386/pcdisk.c?rev=53940&r1=53939&r2=53940&view=diff
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/pcdisk.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/pcdisk.c [iso-8859-1] Sun Oct  2 20:09:07 2011
@@ -18,8 +18,6 @@
  */
 
 #include <freeldr.h>
-
-#define NDEBUG
 #include <debug.h>
 
 DBG_DEFAULT_CHANNEL(DISK);
@@ -127,7 +125,7 @@
 	}
 
 	// 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 @@
 		// 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;
 		}
 

Modified: trunk/reactos/boot/freeldr/freeldr/bootmgr.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/bootmgr.c?rev=53940&r1=53939&r2=53940&view=diff
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/bootmgr.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/bootmgr.c [iso-8859-1] Sun Oct  2 20:09:07 2011
@@ -145,7 +145,7 @@
 	}
 	TimeOut = GetTimeOut();
 
-	if (!UiInitialize(1))
+	if (!UiInitialize(TRUE))
 	{
 		UiMessageBoxCritical("Unable to initialize UI.");
 		return;




More information about the Ros-diffs mailing list