Author: gschneider
Date: Thu Dec 10 12:02:45 2009
New Revision: 44518
URL:
http://svn.reactos.org/svn/reactos?rev=44518&view=rev
Log:
[ntdll] Fix debug print, output the flags if available
Modified:
trunk/reactos/dll/ntdll/ldr/utils.c
Modified: trunk/reactos/dll/ntdll/ldr/utils.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/ntdll/ldr/utils.c?rev=…
==============================================================================
--- trunk/reactos/dll/ntdll/ldr/utils.c [iso-8859-1] (original)
+++ trunk/reactos/dll/ntdll/ldr/utils.c [iso-8859-1] Thu Dec 10 12:02:45 2009
@@ -902,10 +902,11 @@
ULONG_PTR cookie;
PPEB Peb = NtCurrentPeb();
- TRACE_LDR("LdrLoadDll, loading %wZ%s%S\n",
+ TRACE_LDR("LdrLoadDll loading %wZ%S%S with flags %d\n",
Name,
SearchPath ? L" from " : L"",
- SearchPath ? SearchPath : L"");
+ SearchPath ? SearchPath : L"",
+ LoadFlags ? *LoadFlags : 0);
Status = LdrpLoadModule(SearchPath, LoadFlags ? *LoadFlags : 0, Name, &Module,
BaseAddress);
@@ -1493,7 +1494,7 @@
UNICODE_STRING DllName;
NTSTATUS Status;
- DPRINT("LdrpGetOrLoadModule() called for %s\n", Name);
+ DPRINT1("LdrpGetOrLoadModule() called for %s\n", Name);
RtlInitAnsiString(&AnsiDllName, Name);
Status = RtlAnsiStringToUnicodeString(&DllName, &AnsiDllName, TRUE);