From be1265e3f8626cb72cd78fc2d689bfc9e0b7d5dd Mon Sep 17 00:00:00 2001 From: Stefan Ginsberg Date: Wed, 18 Feb 2009 15:15:37 +0000 Subject: [PATCH] - 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 svn path=/trunk/; revision=39659 --- reactos/boot/freeldr/freeldr/arch/i386/i386disk.c | 2 ++ reactos/boot/freeldr/freeldr/include/debug.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/boot/freeldr/freeldr/arch/i386/i386disk.c b/reactos/boot/freeldr/freeldr/arch/i386/i386disk.c index 1ecc74a0d21..4bf1d313c52 100644 --- a/reactos/boot/freeldr/freeldr/arch/i386/i386disk.c +++ b/reactos/boot/freeldr/freeldr/arch/i386/i386disk.c @@ -163,6 +163,7 @@ BOOLEAN DiskGetExtendedDriveParameters(ULONG DriveNumber, PVOID Buffer, USHORT B 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 @@ BOOLEAN DiskGetExtendedDriveParameters(ULONG DriveNumber, PVOID Buffer, USHORT B { DPRINTM(DPRINT_DISK, "signature: %x\n", Ptr[15]); } +#endif return TRUE; } diff --git a/reactos/boot/freeldr/freeldr/include/debug.h b/reactos/boot/freeldr/freeldr/include/debug.h index 96f59877964..d271618dda4 100644 --- a/reactos/boot/freeldr/freeldr/include/debug.h +++ b/reactos/boot/freeldr/freeldr/include/debug.h @@ -80,7 +80,7 @@ void MEMORY_WRITE_BREAKPOINT4(unsigned long addr); #else #define DebugInit() - #define DPRINTM(_x_) + #define DPRINTM(_x_, ...) #define BugCheck(_x_) #define DbgDumpBuffer(_x_, _y_, _z_)