- 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
This commit is contained in:
Stefan Ginsberg 2009-02-18 15:15:37 +00:00
parent 59924db62f
commit be1265e3f8
2 changed files with 3 additions and 1 deletions

View file

@ -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;
}

View file

@ -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_)