mirror of
https://github.com/reactos/reactos.git
synced 2025-07-29 10:32:41 +00:00
[SMSS]
Less debug, better diagnostis. svn path=/trunk/; revision=71034
This commit is contained in:
parent
48463497bb
commit
69a888dc46
3 changed files with 13 additions and 13 deletions
|
@ -317,7 +317,7 @@ SmpDeletePagingFile(IN PUNICODE_STRING FileName)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DPRINT1("SMSS:PFILE: Deleted stale paging file - %wZ\n", FileName);
|
DPRINT("SMSS:PFILE: Deleted stale paging file - %wZ\n", FileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Close the handle */
|
/* Close the handle */
|
||||||
|
@ -1040,7 +1040,7 @@ SmpCreatePagingFiles(VOID)
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
/* We failed -- try again, with size minimization this time */
|
/* 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);
|
&Descriptor->Name);
|
||||||
Status = SmpCreateSystemManagedPagingFile(Descriptor, TRUE);
|
Status = SmpCreateSystemManagedPagingFile(Descriptor, TRUE);
|
||||||
}
|
}
|
||||||
|
@ -1063,7 +1063,7 @@ SmpCreatePagingFiles(VOID)
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
/* We failed to create it. Try again with a smaller size */
|
/* 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);
|
&Descriptor->Name);
|
||||||
Size.QuadPart = 16 * MEGABYTE;
|
Size.QuadPart = 16 * MEGABYTE;
|
||||||
Status = SmpCreatePagingFileOnAnyDrive(Descriptor,
|
Status = SmpCreatePagingFileOnAnyDrive(Descriptor,
|
||||||
|
|
|
@ -361,7 +361,7 @@ SmpConfigureFileRenames(IN PWSTR ValueName,
|
||||||
if (Canary)
|
if (Canary)
|
||||||
{
|
{
|
||||||
/* Save the data into the list */
|
/* 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);
|
Status = SmpSaveRegistryValue(EntryContext, Canary, ValueData, FALSE);
|
||||||
Canary = NULL;
|
Canary = NULL;
|
||||||
}
|
}
|
||||||
|
@ -2000,7 +2000,7 @@ SmpProcessFileRenames(VOID)
|
||||||
/* Get this entry */
|
/* Get this entry */
|
||||||
NextEntry = RemoveHeadList(Head);
|
NextEntry = RemoveHeadList(Head);
|
||||||
RegEntry = CONTAINING_RECORD(NextEntry, SMP_REGISTRY_VALUE, Entry);
|
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 */
|
/* Skip past the '@' marker */
|
||||||
if (!(RegEntry->Value.Length) && (*RegEntry->Name.Buffer == L'@'))
|
if (!(RegEntry->Value.Length) && (*RegEntry->Name.Buffer == L'@'))
|
||||||
|
@ -2083,7 +2083,7 @@ SmpProcessFileRenames(VOID)
|
||||||
Buffer->ReplaceIfExists)
|
Buffer->ReplaceIfExists)
|
||||||
{
|
{
|
||||||
/* Open the file for write attribute access this time... */
|
/* 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->Name,
|
||||||
&RegEntry->Value,
|
&RegEntry->Value,
|
||||||
STATUS_OBJECT_NAME_COLLISION);
|
STATUS_OBJECT_NAME_COLLISION);
|
||||||
|
@ -2110,7 +2110,7 @@ SmpProcessFileRenames(VOID)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Now remove the read-only attribute from the file */
|
/* 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));
|
RtlZeroMemory(&BasicInfo, sizeof(BasicInfo));
|
||||||
BasicInfo.FileAttributes = FILE_ATTRIBUTE_NORMAL;
|
BasicInfo.FileAttributes = FILE_ATTRIBUTE_NORMAL;
|
||||||
Status = NtSetInformationFile(FileHandle,
|
Status = NtSetInformationFile(FileHandle,
|
||||||
|
@ -2128,7 +2128,7 @@ SmpProcessFileRenames(VOID)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Now that the file is no longer read-only, delete! */
|
/* 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,
|
Status = NtSetInformationFile(OtherFileHandle,
|
||||||
&IoStatusBlock,
|
&IoStatusBlock,
|
||||||
Buffer,
|
Buffer,
|
||||||
|
@ -2143,7 +2143,7 @@ SmpProcessFileRenames(VOID)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Everything ok */
|
/* Everything ok */
|
||||||
DPRINT1(" SMSS: Re-Rename Worked OK\n");
|
DPRINT(" SMSS: Re-Rename Worked OK\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2162,12 +2162,12 @@ Quickie:
|
||||||
else if (RegEntry->Value.Length)
|
else if (RegEntry->Value.Length)
|
||||||
{
|
{
|
||||||
/* We succeed with a rename */
|
/* 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
|
else
|
||||||
{
|
{
|
||||||
/* We suceeded with a delete */
|
/* 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 */
|
/* Now free this entry and keep going */
|
||||||
|
@ -2242,7 +2242,7 @@ SmpLoadDataFromRegistry(OUT PUNICODE_STRING InitialCommand)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Print out if this is the case */
|
/* 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 */
|
/* Open the environment key to see if we are booted in safe mode */
|
||||||
RtlInitUnicodeString(&DestinationString,
|
RtlInitUnicodeString(&DestinationString,
|
||||||
|
|
|
@ -179,7 +179,7 @@ SmpSbCreateSession(IN PVOID Reserved,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* This is a native application being started as the initial command */
|
/* 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);
|
NtClose(ProcessInformation->ProcessHandle);
|
||||||
NtResumeThread(ProcessInformation->ThreadHandle, NULL);
|
NtResumeThread(ProcessInformation->ThreadHandle, NULL);
|
||||||
NtClose(ProcessInformation->ThreadHandle);
|
NtClose(ProcessInformation->ThreadHandle);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue