[ros-diffs] [ion] 16911: Silence debug messages

ion at svn.reactos.com ion at svn.reactos.com
Sun Jul 31 07:43:18 CEST 2005


Silence debug messages
Modified: trunk/reactos/lib/kernel32/misc/dllmain.c
Modified: trunk/reactos/lib/kernel32/process/create.c
  _____  

Modified: trunk/reactos/lib/kernel32/misc/dllmain.c
--- trunk/reactos/lib/kernel32/misc/dllmain.c	2005-07-31 03:27:04 UTC
(rev 16910)
+++ trunk/reactos/lib/kernel32/misc/dllmain.c	2005-07-31 05:43:10 UTC
(rev 16911)
@@ -94,16 +94,16 @@

 
     WCHAR lpTest[MAX_PATH];
     GetModuleFileNameW(NULL, lpTest, MAX_PATH);
-    DPRINT1("BasepInitConsole for : %S\n", lpTest);
-    DPRINT1("Our current console handles are: %lx, %lx, %lx %lx\n", 
-            Parameters->ConsoleHandle, Parameters->StandardInput, 
-            Parameters->StandardOutput, Parameters->StandardError);
+    DPRINT("BasepInitConsole for : %S\n", lpTest);
+    DPRINT("Our current console handles are: %lx, %lx, %lx %lx\n", 
+           Parameters->ConsoleHandle, Parameters->StandardInput, 
+           Parameters->StandardOutput, Parameters->StandardError);
 
     /* We have nothing to do if this isn't a console app... */
     if
(RtlImageNtHeader(GetModuleHandle(NULL))->OptionalHeader.Subsystem !=
         IMAGE_SUBSYSTEM_WINDOWS_CUI)
     {
-        DPRINT1("Image is not a console application\n");
+        DPRINT("Image is not a console application\n");
         Parameters->ConsoleHandle = NULL;
         return TRUE;
     }
@@ -115,14 +115,14 @@
     if (Parameters->ConsoleHandle == HANDLE_DETACHED_PROCESS)
     {
         /* No console to create */
-        DPRINT1("No console to create\n");
+        DPRINT("No console to create\n");
         Parameters->ConsoleHandle = NULL;
         Request.Data.AllocConsoleRequest.ConsoleNeeded = FALSE;
     }
     else if (Parameters->ConsoleHandle == HANDLE_CREATE_NEW_CONSOLE)
     {
         /* We'll get the real one soon */
-        DPRINT1("Creating new console\n");
+        DPRINT("Creating new console\n");
         Parameters->ConsoleHandle = NULL;
     }
     else if (Parameters->ConsoleHandle == HANDLE_CREATE_NO_WINDOW)
@@ -133,7 +133,7 @@
     }
     else
     {
-        DPRINT1("Using existing console: %x\n",
Parameters->ConsoleHandle);
+        DPRINT("Using existing console: %x\n",
Parameters->ConsoleHandle);
     }
 
     /* Initialize Console Ctrl Handler */
@@ -183,7 +183,7 @@
         }
     }
 
-    DPRINT1("Console setup: %lx, %lx, %lx, %lx\n", 
+    DPRINT("Console setup: %lx, %lx, %lx, %lx\n", 
             Parameters->ConsoleHandle,
             Parameters->StandardInput,
             Parameters->StandardOutput,
  _____  

Modified: trunk/reactos/lib/kernel32/process/create.c
--- trunk/reactos/lib/kernel32/process/create.c	2005-07-31 03:27:04 UTC
(rev 16910)
+++ trunk/reactos/lib/kernel32/process/create.c	2005-07-31 05:43:10 UTC
(rev 16911)
@@ -86,7 +86,7 @@

     CSR_API_MESSAGE CsrRequest;
     NTSTATUS Status;
     
-    DPRINT1("BasepNotifyCsrOfCreation: Process: %lx, Flags %lx\n", 
+    DPRINT("BasepNotifyCsrOfCreation: Process: %lx, Flags %lx\n", 
             ProcessId, dwCreationFlags);
          
     /* Fill out the request */
@@ -308,13 +308,12 @@
                  IN PRTL_USER_PROCESS_PARAMETERS PebParams,
                  IN BOOL InheritHandles)
 {
-    DPRINT1("BasepCopyHandles %p %p, %d\n", Params, PebParams,
InheritHandles);
+    DPRINT("BasepCopyHandles %p %p, %d\n", Params, PebParams,
InheritHandles);
 
     /* Copy the handle if we are inheriting or if it's a console handle
*/
     if (InheritHandles || IsConsoleHandle(PebParams->StandardInput))
     {
         Params->StandardInput = PebParams->StandardInput;
-        DPRINT1("Standard Input: %x\n", Params->StandardInput);
     }
     if (InheritHandles || IsConsoleHandle(PebParams->StandardOutput))
     {
@@ -352,7 +351,7 @@
     UNICODE_STRING Desktop, Shell, Runtime, Title;
     PPEB OurPeb = NtCurrentPeb();
     
-    DPRINT1("BasepInitializeEnvironment\n");
+    DPRINT("BasepInitializeEnvironment\n");
     
     /* Get the full path name */
     RetVal = GetFullPathNameW(ApplicationPathName,
@@ -481,7 +480,7 @@
     /* Write the handles only if we have to */
     if (StartupInfo->dwFlags & STARTF_USESTDHANDLES)
     {
-        DPRINT1("Using Standard Handles\n");
+        DPRINT("Using Standard Handles\n");
         ProcessParameters->StandardInput = StartupInfo->hStdInput;
         ProcessParameters->StandardOutput = StartupInfo->hStdOutput;
         ProcessParameters->StandardError = StartupInfo->hStdError;
@@ -510,7 +509,7 @@
               (STARTF_USESTDHANDLES | STARTF_USEHOTKEY |
STARTF_SHELLPRIVATE)))
         {
             /* Use handles from PEB, if inheriting or they are console
*/ 
-            DPRINT1("Copying handles from parent\n");
+            DPRINT("Copying handles from parent\n");
             BasepCopyHandles(ProcessParameters,
                              OurPeb->ProcessParameters,
                              InheritHandles);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050731/cc73ada0/attachment.html


More information about the Ros-diffs mailing list