From f5ac842ed4271c56cc47e51e21d2e327444a3780 Mon Sep 17 00:00:00 2001 From: Brian Palmer Date: Wed, 7 Aug 2002 05:37:07 +0000 Subject: [PATCH] Fix for compiling in non-debug (release) mode. (Reduces binary size from 128k to 82k currently) svn path=/trunk/; revision=3319 --- freeldr/freeldr/mm/meminit.c | 2 ++ freeldr/freeldr/reactos/reactos.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/freeldr/freeldr/mm/meminit.c b/freeldr/freeldr/mm/meminit.c index 8d240e9a41d..5d2846fc048 100644 --- a/freeldr/freeldr/mm/meminit.c +++ b/freeldr/freeldr/mm/meminit.c @@ -55,7 +55,9 @@ BOOL MmInitializeMemoryManager(VOID) U32 BiosMemoryMapEntryCount; U32 ExtendedMemorySize; U32 ConventionalMemorySize; +#ifdef DEBUG U32 Index; +#endif DbgPrint((DPRINT_MEMORY, "Initializing Memory Manager.\n")); diff --git a/freeldr/freeldr/reactos/reactos.c b/freeldr/freeldr/reactos/reactos.c index 591ad23dcfe..7d4a55e289f 100644 --- a/freeldr/freeldr/reactos/reactos.c +++ b/freeldr/freeldr/reactos/reactos.c @@ -520,7 +520,7 @@ LoadAndBootReactOS(PUCHAR OperatingSystemName) szBootPath[strlen(szBootPath)] != '\\') strcat(szBootPath, "\\"); - DebugPrint(DPRINT_REACTOS,"SystemRoot: '%s'\n", szBootPath); + DbgPrint((DPRINT_REACTOS,"SystemRoot: '%s'\n", szBootPath)); UiDrawBackdrop(); UiDrawStatusText("Loading..."); @@ -625,7 +625,7 @@ LoadAndBootReactOS(PUCHAR OperatingSystemName) strcat(szFileName, value); } - DebugPrint(DPRINT_REACTOS, "SystemHive: '%s'", szFileName); + DbgPrint((DPRINT_REACTOS, "SystemHive: '%s'", szFileName)); FilePointer = OpenFile(szFileName); if (FilePointer == NULL) @@ -652,7 +652,7 @@ LoadAndBootReactOS(PUCHAR OperatingSystemName) RegImportHive(Base, Size); UiDrawProgressBarCenter(15, 100); - DebugPrint(DPRINT_REACTOS, "SystemHive loaded at 0x%x size %u", (unsigned)Base, (unsigned)Size); + DbgPrint((DPRINT_REACTOS, "SystemHive loaded at 0x%x size %u", (unsigned)Base, (unsigned)Size)); /* * Retrieve hardware information and create the hardware hive