[NTVDM]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 27 Dec 2013 19:51:43 +0000 (19:51 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 27 Dec 2013 19:51:43 +0000 (19:51 +0000)
Shut up few DPRINT1s, and demote some DPRINT1s to DPRINTs but disable NDEBUG for now (enable it and you'll shut up the DPRINTs).

svn path=/branches/ntvdm/; revision=61451

subsystems/ntvdm/bop.c
subsystems/ntvdm/int32.c
subsystems/ntvdm/io.c
subsystems/ntvdm/vddsup.c

index c93bdd1..4070042 100644 (file)
@@ -9,7 +9,7 @@
 
 /* INCLUDES *******************************************************************/
 
-#define NDEBUG
+// #define NDEBUG
 
 #include "emulator.h"
 #include "bop.h"
@@ -44,7 +44,7 @@ VOID WINAPI EmulatorBiosOperation(PFAST486_STATE State, UCHAR BopCode)
     if (BopProc[BopCode] != NULL)
         BopProc[BopCode](Stack);
     else
-        DPRINT1("Invalid BOP code: 0x%02X\n", BopCode);
+        DPRINT("Invalid BOP code: 0x%02X\n", BopCode);
 }
 
 /* EOF */
index 32ba2f4..beb2bdd 100644 (file)
@@ -9,7 +9,7 @@
 
 /* INCLUDES *******************************************************************/
 
-#define NDEBUG
+// #define NDEBUG
 
 #include "emulator.h"
 #include "int32.h"
@@ -131,7 +131,7 @@ VOID WINAPI Int32Dispatch(LPWORD Stack)
     if (Int32Proc[IntNum] != NULL)
         Int32Proc[IntNum](Stack);
     else
-        DPRINT1("Unhandled 32-bit interrupt: 0x%02X, AX = 0x%04X\n", IntNum, getAX());
+        DPRINT("Unhandled 32-bit interrupt: 0x%02X, AX = 0x%04X\n", IntNum, getAX());
 }
 
 VOID WINAPI ControlBop(LPWORD Stack)
@@ -143,7 +143,7 @@ VOID WINAPI ControlBop(LPWORD Stack)
     if (FuncNum == BOP_CONTROL_INT32)
         Int32Dispatch(Stack);
     else
-        DPRINT1("Unassigned Control BOP Function: 0x%02X\n", FuncNum);
+        DPRINT("Unassigned Control BOP Function: 0x%02X\n", FuncNum);
 }
 
 VOID InitializeInt32(WORD BiosSegment)
index 3c6782f..f54ddf0 100644 (file)
@@ -9,7 +9,7 @@
 
 /* INCLUDES *******************************************************************/
 
-#define NDEBUG
+// #define NDEBUG
 
 #include "emulator.h"
 #include "io.h"
@@ -75,7 +75,7 @@ IOReadB(ULONG  Port,
     else
     {
         /* Return an empty port byte value */
-        DPRINT1("Read from unknown port: 0x%X\n", Port);
+        DPRINT("Read from unknown port: 0x%X\n", Port);
         *Buffer = 0xFF;
     }
 }
@@ -121,7 +121,7 @@ IOWriteB(ULONG  Port,
     else
     {
         /* Do nothing */
-        DPRINT1("Write to unknown port: 0x%X\n", Port);
+        DPRINT("Write to unknown port: 0x%X\n", Port);
     }
 }
 
index b02fc03..89424c7 100644 (file)
@@ -71,7 +71,7 @@ VOID WINAPI ThirdPartyVDDBop(LPWORD Stack)
             VDD_PROC InitRoutine     = NULL,
                      DispatchRoutine = NULL;
 
-            DPRINT1("RegisterModule() called\n");
+            DPRINT("RegisterModule() called\n");
 
             /* Clear the Carry Flag (no error happened so far) */
             setCF(0);
@@ -182,7 +182,7 @@ Quit:
             WORD Handle = getAX();
             WORD Entry  = HANDLE_TO_ENTRY(Handle); // Convert the handle to a valid entry
 
-            DPRINT1("UnRegisterModule() called\n");
+            DPRINT("UnRegisterModule() called\n");
 
             /* Sanity checks */
             if (!IS_VALID_HANDLE(Handle) || VDDList[Entry].hDll == NULL)
@@ -206,7 +206,7 @@ Quit:
             WORD Handle = getAX();
             WORD Entry  = HANDLE_TO_ENTRY(Handle); // Convert the handle to a valid entry
 
-            DPRINT1("DispatchCall() called\n");
+            DPRINT("DispatchCall() called\n");
 
             /* Sanity checks */
             if (!IS_VALID_HANDLE(Handle)    ||