From 838cc74dd02177ba331beb77e4fda92961169607 Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Sun, 31 Jul 2005 05:43:10 +0000 Subject: [PATCH] Silence debug messages svn path=/trunk/; revision=16911 --- reactos/lib/kernel32/misc/dllmain.c | 18 +++++++++--------- reactos/lib/kernel32/process/create.c | 11 +++++------ 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/reactos/lib/kernel32/misc/dllmain.c b/reactos/lib/kernel32/misc/dllmain.c index f3fd13f8a1e..35652d55fc8 100644 --- a/reactos/lib/kernel32/misc/dllmain.c +++ b/reactos/lib/kernel32/misc/dllmain.c @@ -94,16 +94,16 @@ BasepInitConsole(VOID) 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 @@ BasepInitConsole(VOID) 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 @@ BasepInitConsole(VOID) } 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 @@ BasepInitConsole(VOID) } } - DPRINT1("Console setup: %lx, %lx, %lx, %lx\n", + DPRINT("Console setup: %lx, %lx, %lx, %lx\n", Parameters->ConsoleHandle, Parameters->StandardInput, Parameters->StandardOutput, diff --git a/reactos/lib/kernel32/process/create.c b/reactos/lib/kernel32/process/create.c index 93b2987a31c..0307786cdb8 100644 --- a/reactos/lib/kernel32/process/create.c +++ b/reactos/lib/kernel32/process/create.c @@ -86,7 +86,7 @@ BasepNotifyCsrOfCreation(ULONG dwCreationFlags, 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 @@ BasepCopyHandles(IN PRTL_USER_PROCESS_PARAMETERS Params, 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 @@ BasepInitializeEnvironment(HANDLE ProcessHandle, 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 @@ BasepInitializeEnvironment(HANDLE ProcessHandle, /* 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 @@ BasepInitializeEnvironment(HANDLE ProcessHandle, (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);