[ros-diffs] [sginsberg] 39659: - Fix freeldr release build breakage from 39638 by correcting non-debug DPRINTM, and wrap some debug code inside a DBG to silence a 'unused variable' warning

sginsberg at svn.reactos.org sginsberg at svn.reactos.org
Wed Feb 18 16:15:38 CET 2009


Author: sginsberg
Date: Wed Feb 18 09:15:37 2009
New Revision: 39659

URL: http://svn.reactos.org/svn/reactos?rev=39659&view=rev
Log:
- Fix freeldr release build breakage from 39638 by correcting non-debug DPRINTM, and wrap some debug code inside a DBG to silence a 'unused variable' warning

Modified:
    trunk/reactos/boot/freeldr/freeldr/arch/i386/i386disk.c
    trunk/reactos/boot/freeldr/freeldr/include/debug.h

Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/i386disk.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/i386/i386disk.c?rev=39659&r1=39658&r2=39659&view=diff
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/i386disk.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/i386disk.c [iso-8859-1] Wed Feb 18 09:15:37 2009
@@ -163,6 +163,7 @@
 
 	memcpy(Buffer, Ptr, BufferSize);
 
+#ifdef DBG
     DPRINTM(DPRINT_DISK, "size of buffer:                          %x\n", Ptr[0]);
     DPRINTM(DPRINT_DISK, "information flags:                       %x\n", Ptr[1]);
     DPRINTM(DPRINT_DISK, "number of physical cylinders on drive:   %u\n", *(PULONG)&Ptr[2]);
@@ -192,6 +193,7 @@
     {
         DPRINTM(DPRINT_DISK, "signature:                             %x\n", Ptr[15]);
     }
+#endif
 
 	return TRUE;
 }

Modified: trunk/reactos/boot/freeldr/freeldr/include/debug.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/include/debug.h?rev=39659&r1=39658&r2=39659&view=diff
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/include/debug.h [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/include/debug.h [iso-8859-1] Wed Feb 18 09:15:37 2009
@@ -80,7 +80,7 @@
 #else
 
 	#define DebugInit()
-	#define DPRINTM(_x_)
+	#define DPRINTM(_x_, ...)
 	#define BugCheck(_x_)
 	#define DbgDumpBuffer(_x_, _y_, _z_)
 



More information about the Ros-diffs mailing list