From 34ef0d66debe9ea631df3e5936317ac285ef6dcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Sun, 5 Jun 2005 11:05:47 +0000 Subject: [PATCH] Use standard debug macros svn path=/trunk/; revision=15800 --- reactos/drivers/video/miniport/vbe/vbemp.c | 30 ++++++++++++---------- reactos/drivers/video/miniport/vbe/vbemp.h | 6 ----- 2 files changed, 16 insertions(+), 20 deletions(-) diff --git a/reactos/drivers/video/miniport/vbe/vbemp.c b/reactos/drivers/video/miniport/vbe/vbemp.c index 738d3077633..f0f50a2933f 100644 --- a/reactos/drivers/video/miniport/vbe/vbemp.c +++ b/reactos/drivers/video/miniport/vbe/vbemp.c @@ -27,9 +27,11 @@ /* INCLUDES *******************************************************************/ -#define NDEBUG #include "vbemp.h" +#define NDEBUG +#include + /* PUBLIC AND PRIVATE FUNCTIONS ***********************************************/ VP_STATUS STDCALL @@ -78,11 +80,11 @@ VBEFindAdapter( static int VBESortModesCallback(PVBE_MODEINFO VbeModeInfoA, PVBE_MODEINFO VbeModeInfoB) { - DPRINT(("VBESortModesCallback: %dx%dx%d / %dx%dx%d\n", + DPRINT("VBESortModesCallback: %dx%dx%d / %dx%dx%d\n", VbeModeInfoA->XResolution, VbeModeInfoA->YResolution, VbeModeInfoA->BitsPerPixel, VbeModeInfoB->XResolution, VbeModeInfoB->YResolution, - VbeModeInfoB->BitsPerPixel)); + VbeModeInfoB->BitsPerPixel); /* * FIXME: Until some reasonable method for changing video modes will @@ -188,7 +190,7 @@ VBEInitialize(PVOID HwDeviceExtension) if (Status != NO_ERROR) { - DPRINT(("Failed to get Int 10 service functions (Status %x)\n", Status)); + DPRINT1("Failed to get Int 10 service functions (Status %x)\n", Status); return FALSE; } @@ -207,7 +209,7 @@ VBEInitialize(PVOID HwDeviceExtension) if (Status != NO_ERROR) { - DPRINT(("Failed to allocate virtual memory (Status %x)\n", Status)); + DPRINT1("Failed to allocate virtual memory (Status %x)\n", Status); return FALSE; } @@ -239,10 +241,10 @@ VBEInitialize(PVOID HwDeviceExtension) &VBEDeviceExtension->VbeInfo, sizeof(VBEDeviceExtension->VbeInfo)); - DPRINT(("VBE BIOS Present (%d.%d, %8ld Kb)\n", + DPRINT("VBE BIOS Present (%d.%d, %8ld Kb)\n", VBEDeviceExtension->VbeInfo.Version / 0x100, VBEDeviceExtension->VbeInfo.Version & 0xFF, - VBEDeviceExtension->VbeInfo.TotalMemory * 16)); + VBEDeviceExtension->VbeInfo.TotalMemory * 16); #ifdef VBE12_SUPPORT if (VBEDeviceExtension->VbeInfo.Version < 0x102) @@ -250,13 +252,13 @@ VBEInitialize(PVOID HwDeviceExtension) if (VBEDeviceExtension->VbeInfo.Version < 0x200) #endif { - DPRINT(("VBE BIOS present, but incompatible version.\n")); + DPRINT("VBE BIOS present, but incompatible version.\n"); return FALSE; } } else { - DPRINT(("No VBE BIOS found.\n")); + DPRINT("No VBE BIOS found.\n"); return FALSE; } @@ -357,7 +359,7 @@ VBEInitialize(PVOID HwDeviceExtension) if (SuitableModeCount == 0) { - DPRINT(("VBEMP: No video modes supported\n")); + DPRINT("VBEMP: No video modes supported\n"); return FALSE; } @@ -373,15 +375,15 @@ VBEInitialize(PVOID HwDeviceExtension) * Print the supported video modes when DBG is set. */ -#ifdef DBG +#if defined(DBG) && ! defined(NDEBUG) for (CurrentMode = 0; CurrentMode < SuitableModeCount; CurrentMode++) { - DPRINT(("%dx%dx%d\n", + DPRINT("%dx%dx%d\n", VBEDeviceExtension->ModeInfo[CurrentMode].XResolution, VBEDeviceExtension->ModeInfo[CurrentMode].YResolution, - VBEDeviceExtension->ModeInfo[CurrentMode].BitsPerPixel)); + VBEDeviceExtension->ModeInfo[CurrentMode].BitsPerPixel); } #endif @@ -731,7 +733,7 @@ VBESetCurrentMode( } else { - DPRINT(("VBEMP: VBESetCurrentMode failed (%x)\n", BiosRegisters.Eax)); + DPRINT1("VBEMP: VBESetCurrentMode failed (%x)\n", BiosRegisters.Eax); DeviceExtension->CurrentMode = -1; } diff --git a/reactos/drivers/video/miniport/vbe/vbemp.h b/reactos/drivers/video/miniport/vbe/vbemp.h index 0bed245e568..028d454f136 100644 --- a/reactos/drivers/video/miniport/vbe/vbemp.h +++ b/reactos/drivers/video/miniport/vbe/vbemp.h @@ -31,12 +31,6 @@ #include #include -#ifdef DBG -#define DPRINT(arg) DbgPrint arg; -#else -#define DPRINT(arg) -#endif - /* * Compile-time define to get VBE 1.2 support. The implementation * is far from complete now and so it's left undefined.