Author: spetreolle
Date: Tue Mar 22 18:34:18 2016
New Revision: 71034
URL:
http://svn.reactos.org/svn/reactos?rev=71034&view=rev
Log:
[SMSS]
Less debug, better diagnostis.
Modified:
trunk/reactos/base/system/smss/pagefile.c
trunk/reactos/base/system/smss/sminit.c
trunk/reactos/base/system/smss/smsbapi.c
Modified: trunk/reactos/base/system/smss/pagefile.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/smss/pagefile.…
==============================================================================
--- trunk/reactos/base/system/smss/pagefile.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/smss/pagefile.c [iso-8859-1] Tue Mar 22 18:34:18 2016
@@ -317,7 +317,7 @@
}
else
{
- DPRINT1("SMSS:PFILE: Deleted stale paging file - %wZ\n",
FileName);
+ DPRINT("SMSS:PFILE: Deleted stale paging file - %wZ\n", FileName);
}
/* Close the handle */
@@ -1040,7 +1040,7 @@
if (!NT_SUCCESS(Status))
{
/* We failed -- try again, with size minimization this time */
- DPRINT1("SMSS:PFILE: Trying lower sizes for (`%wZ')\n",
+ DPRINT("SMSS:PFILE: Trying lower sizes for (`%wZ')\n",
&Descriptor->Name);
Status = SmpCreateSystemManagedPagingFile(Descriptor, TRUE);
}
@@ -1063,7 +1063,7 @@
if (!NT_SUCCESS(Status))
{
/* We failed to create it. Try again with a smaller size */
- DPRINT1("SMSS:PFILE: Trying lower sizes for
(`%wZ')\n",
+ DPRINT("SMSS:PFILE: Trying lower sizes for (`%wZ')\n",
&Descriptor->Name);
Size.QuadPart = 16 * MEGABYTE;
Status = SmpCreatePagingFileOnAnyDrive(Descriptor,
Modified: trunk/reactos/base/system/smss/sminit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/smss/sminit.c?…
==============================================================================
--- trunk/reactos/base/system/smss/sminit.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/smss/sminit.c [iso-8859-1] Tue Mar 22 18:34:18 2016
@@ -361,7 +361,7 @@
if (Canary)
{
/* Save the data into the list */
- DPRINT1("Renamed file: '%S' - '%S'\n", Canary,
ValueData);
+ DPRINT("Renamed file: '%S' - '%S'\n", Canary,
ValueData);
Status = SmpSaveRegistryValue(EntryContext, Canary, ValueData, FALSE);
Canary = NULL;
}
@@ -2000,7 +2000,7 @@
/* Get this entry */
NextEntry = RemoveHeadList(Head);
RegEntry = CONTAINING_RECORD(NextEntry, SMP_REGISTRY_VALUE, Entry);
- DPRINT1("Processing PFRO: '%wZ' / '%wZ'\n",
&RegEntry->Value, &RegEntry->Name);
+ DPRINT("Processing PFRO: '%wZ' / '%wZ'\n",
&RegEntry->Value, &RegEntry->Name);
/* Skip past the '@' marker */
if (!(RegEntry->Value.Length) && (*RegEntry->Name.Buffer ==
L'@'))
@@ -2083,7 +2083,7 @@
Buffer->ReplaceIfExists)
{
/* Open the file for write attribute access this time... */
- DPRINT1("\nSMSS: '%wZ' => '%wZ' failed - Status
== %x, Possible readonly target\n",
+ DPRINT("\nSMSS: '%wZ' => '%wZ' failed - Status ==
%x, Possible readonly target\n",
&RegEntry->Name,
&RegEntry->Value,
STATUS_OBJECT_NAME_COLLISION);
@@ -2110,7 +2110,7 @@
else
{
/* Now remove the read-only attribute from the file */
- DPRINT1(" SMSS: Open Existing Success\n");
+ DPRINT(" SMSS: Open Existing Success\n");
RtlZeroMemory(&BasicInfo, sizeof(BasicInfo));
BasicInfo.FileAttributes = FILE_ATTRIBUTE_NORMAL;
Status = NtSetInformationFile(FileHandle,
@@ -2128,7 +2128,7 @@
else
{
/* Now that the file is no longer read-only, delete! */
- DPRINT1(" SMSS: Set To NORMAL OK\n");
+ DPRINT(" SMSS: Set To NORMAL OK\n");
Status = NtSetInformationFile(OtherFileHandle,
&IoStatusBlock,
Buffer,
@@ -2143,7 +2143,7 @@
else
{
/* Everything ok */
- DPRINT1(" SMSS: Re-Rename Worked OK\n");
+ DPRINT(" SMSS: Re-Rename Worked OK\n");
}
}
}
@@ -2162,12 +2162,12 @@
else if (RegEntry->Value.Length)
{
/* We succeed with a rename */
- DPRINT1("SMSS: '%wZ' (renamed to) '%wZ'\n",
&RegEntry->Name, &RegEntry->Value);
+ DPRINT("SMSS: '%wZ' (renamed to) '%wZ'\n",
&RegEntry->Name, &RegEntry->Value);
}
else
{
/* We suceeded with a delete */
- DPRINT1("SMSS: '%wZ' (deleted)\n",
&RegEntry->Name);
+ DPRINT("SMSS: '%wZ' (deleted)\n", &RegEntry->Name);
}
/* Now free this entry and keep going */
@@ -2242,7 +2242,7 @@
}
/* Print out if this is the case */
- if (MiniNTBoot) DPRINT1("SMSS: !!! MiniNT Boot !!!\n");
+ if (MiniNTBoot) DPRINT("SMSS: !!! MiniNT Boot !!!\n");
/* Open the environment key to see if we are booted in safe mode */
RtlInitUnicodeString(&DestinationString,
Modified: trunk/reactos/base/system/smss/smsbapi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/smss/smsbapi.c…
==============================================================================
--- trunk/reactos/base/system/smss/smsbapi.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/smss/smsbapi.c [iso-8859-1] Tue Mar 22 18:34:18 2016
@@ -179,7 +179,7 @@
#endif
/* This is a native application being started as the initial command */
- DPRINT1("Subsystem active, starting thread\n");
+ DPRINT("Subsystem active, starting thread\n");
NtClose(ProcessInformation->ProcessHandle);
NtResumeThread(ProcessInformation->ThreadHandle, NULL);
NtClose(ProcessInformation->ThreadHandle);