mirror of
https://github.com/reactos/reactos.git
synced 2025-04-22 13:10:39 +00:00
[SMSS]
* Fix some print specifiers. svn path=/trunk/; revision=59972
This commit is contained in:
parent
1a96516805
commit
62b8ac070f
5 changed files with 15 additions and 15 deletions
|
@ -94,7 +94,7 @@ SmpCreatePagingFileDescriptor(IN PUNICODE_STRING PageFileToken)
|
||||||
/* Make sure we don't have too many */
|
/* Make sure we don't have too many */
|
||||||
if (SmpNumberOfPagingFiles >= 16)
|
if (SmpNumberOfPagingFiles >= 16)
|
||||||
{
|
{
|
||||||
DPRINT1("SMSS:PFILE: Too many paging files specified - %d\n",
|
DPRINT1("SMSS:PFILE: Too many paging files specified - %lu\n",
|
||||||
SmpNumberOfPagingFiles);
|
SmpNumberOfPagingFiles);
|
||||||
return STATUS_TOO_MANY_PAGING_FILES;
|
return STATUS_TOO_MANY_PAGING_FILES;
|
||||||
}
|
}
|
||||||
|
|
|
@ -236,7 +236,7 @@ SmpConfigureProtectionMode(IN PWSTR ValueName,
|
||||||
|
|
||||||
/* Recreate the security descriptors to take into account security mode */
|
/* Recreate the security descriptors to take into account security mode */
|
||||||
SmpCreateSecurityDescriptors(FALSE);
|
SmpCreateSecurityDescriptors(FALSE);
|
||||||
DPRINT("SmpProtectionMode: %d\n", SmpProtectionMode);
|
DPRINT("SmpProtectionMode: %lu\n", SmpProtectionMode);
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -261,7 +261,7 @@ SmpConfigureAllowProtectedRenames(IN PWSTR ValueName,
|
||||||
SmpAllowProtectedRenames = 0;
|
SmpAllowProtectedRenames = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
DPRINT("SmpAllowProtectedRenames: %d\n", SmpAllowProtectedRenames);
|
DPRINT("SmpAllowProtectedRenames: %lu\n", SmpAllowProtectedRenames);
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1819,13 +1819,13 @@ SmpCreateDynamicEnvironmentVariables(VOID)
|
||||||
{
|
{
|
||||||
/* To combine it into a single string */
|
/* To combine it into a single string */
|
||||||
swprintf((PWCHAR)PartialInfo->Data + wcslen((PWCHAR)PartialInfo->Data),
|
swprintf((PWCHAR)PartialInfo->Data + wcslen((PWCHAR)PartialInfo->Data),
|
||||||
L", %ws",
|
L", %S",
|
||||||
PartialInfo2->Data);
|
PartialInfo2->Data);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* So that we can set this as the PROCESSOR_IDENTIFIER variable */
|
/* So that we can set this as the PROCESSOR_IDENTIFIER variable */
|
||||||
RtlInitUnicodeString(&ValueName, L"PROCESSOR_IDENTIFIER");
|
RtlInitUnicodeString(&ValueName, L"PROCESSOR_IDENTIFIER");
|
||||||
DPRINT("Setting %wZ to %S\n", &ValueName, PartialInfo->Data);
|
DPRINT("Setting %wZ to %s\n", &ValueName, PartialInfo->Data);
|
||||||
Status = NtSetValueKey(KeyHandle,
|
Status = NtSetValueKey(KeyHandle,
|
||||||
&ValueName,
|
&ValueName,
|
||||||
0,
|
0,
|
||||||
|
@ -1884,7 +1884,7 @@ SmpCreateDynamicEnvironmentVariables(VOID)
|
||||||
|
|
||||||
/* And finally, write the number of CPUs */
|
/* And finally, write the number of CPUs */
|
||||||
RtlInitUnicodeString(&ValueName, L"NUMBER_OF_PROCESSORS");
|
RtlInitUnicodeString(&ValueName, L"NUMBER_OF_PROCESSORS");
|
||||||
swprintf(ValueBuffer, L"%u", BasicInfo.NumberOfProcessors);
|
swprintf(ValueBuffer, L"%d", BasicInfo.NumberOfProcessors);
|
||||||
DPRINT("Setting %wZ to %S\n", &ValueName, ValueBuffer);
|
DPRINT("Setting %wZ to %S\n", &ValueName, ValueBuffer);
|
||||||
Status = NtSetValueKey(KeyHandle,
|
Status = NtSetValueKey(KeyHandle,
|
||||||
&ValueName,
|
&ValueName,
|
||||||
|
|
|
@ -184,7 +184,7 @@ SmpGetProcessMuSessionId(IN HANDLE ProcessHandle,
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Failure -- assume session zero */
|
/* Failure -- assume session zero */
|
||||||
DPRINT1("SMSS: GetProcessMuSessionId, Process=%x, Status=%x\n",
|
DPRINT1("SMSS: GetProcessMuSessionId, Process=%p, Status=%x\n",
|
||||||
ProcessHandle, Status);
|
ProcessHandle, Status);
|
||||||
*SessionId = 0;
|
*SessionId = 0;
|
||||||
}
|
}
|
||||||
|
@ -207,7 +207,7 @@ SmpSetProcessMuSessionId(IN HANDLE ProcessHandle,
|
||||||
sizeof(SessionId));
|
sizeof(SessionId));
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DPRINT1("SMSS: SetProcessMuSessionId, Process=%x, Status=%x\n",
|
DPRINT1("SMSS: SetProcessMuSessionId, Process=%p, Status=%x\n",
|
||||||
ProcessHandle, Status);
|
ProcessHandle, Status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -420,7 +420,7 @@ SmpUnhandledExceptionFilter(IN PEXCEPTION_POINTERS ExceptionInfo)
|
||||||
UNICODE_STRING DestinationString;
|
UNICODE_STRING DestinationString;
|
||||||
|
|
||||||
/* Print and breakpoint into the debugger */
|
/* Print and breakpoint into the debugger */
|
||||||
DbgPrint("SMSS: Unhandled exception - Status == %x IP == %x\n",
|
DbgPrint("SMSS: Unhandled exception - Status == %x IP == %p\n",
|
||||||
ExceptionInfo->ExceptionRecord->ExceptionCode,
|
ExceptionInfo->ExceptionRecord->ExceptionCode,
|
||||||
ExceptionInfo->ExceptionRecord->ExceptionAddress);
|
ExceptionInfo->ExceptionRecord->ExceptionAddress);
|
||||||
DbgPrint(" Memory Address: %x Read/Write: %x\n",
|
DbgPrint(" Memory Address: %x Read/Write: %x\n",
|
||||||
|
|
|
@ -330,7 +330,7 @@ SmpLoadSubSystem(IN PUNICODE_STRING FileName,
|
||||||
{
|
{
|
||||||
/* Odd failure -- but handle it anyway */
|
/* Odd failure -- but handle it anyway */
|
||||||
Status = STATUS_NO_SUCH_PACKAGE;
|
Status = STATUS_NO_SUCH_PACKAGE;
|
||||||
DPRINT1("SMSS: SmpLoadSubSystem - SmpLocateKnownSubSysByType Failed with Status %lx for sessionid %ld\n",
|
DPRINT1("SMSS: SmpLoadSubSystem - SmpLocateKnownSubSysByType Failed with Status %lx for sessionid %lu\n",
|
||||||
Status,
|
Status,
|
||||||
MuSessionId);
|
MuSessionId);
|
||||||
goto Quickie;
|
goto Quickie;
|
||||||
|
@ -347,7 +347,7 @@ SmpLoadSubSystem(IN PUNICODE_STRING FileName,
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
/* Fail since this is critical */
|
/* Fail since this is critical */
|
||||||
DPRINT1("SMSS: SmpLoadSubSystem - NtDuplicateObject Failed with Status %lx for sessionid %ld\n",
|
DPRINT1("SMSS: SmpLoadSubSystem - NtDuplicateObject Failed with Status %lx for sessionid %lu\n",
|
||||||
Status,
|
Status,
|
||||||
MuSessionId);
|
MuSessionId);
|
||||||
goto Quickie;
|
goto Quickie;
|
||||||
|
@ -364,7 +364,7 @@ SmpLoadSubSystem(IN PUNICODE_STRING FileName,
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
/* Fail since this is critical */
|
/* Fail since this is critical */
|
||||||
DPRINT1("SMSS: SmpLoadSubSystem - NtDuplicateObject Failed with Status %lx for sessionid %ld\n",
|
DPRINT1("SMSS: SmpLoadSubSystem - NtDuplicateObject Failed with Status %lx for sessionid %lu\n",
|
||||||
Status,
|
Status,
|
||||||
MuSessionId);
|
MuSessionId);
|
||||||
goto Quickie;
|
goto Quickie;
|
||||||
|
@ -387,7 +387,7 @@ SmpLoadSubSystem(IN PUNICODE_STRING FileName,
|
||||||
{
|
{
|
||||||
/* Delete the session and handle failure if the LPC call failed */
|
/* Delete the session and handle failure if the LPC call failed */
|
||||||
SmpDeleteSession(CreateSession->SessionId);
|
SmpDeleteSession(CreateSession->SessionId);
|
||||||
DPRINT1("SMSS: SmpLoadSubSystem - NtRequestWaitReplyPort Failed with Status %lx for sessionid %ld\n",
|
DPRINT1("SMSS: SmpLoadSubSystem - NtRequestWaitReplyPort Failed with Status %lx for sessionid %lu\n",
|
||||||
Status,
|
Status,
|
||||||
CreateSession->SessionId);
|
CreateSession->SessionId);
|
||||||
goto Quickie;
|
goto Quickie;
|
||||||
|
@ -422,7 +422,7 @@ SmpLoadSubSystem(IN PUNICODE_STRING FileName,
|
||||||
if (Status != STATUS_WAIT_0)
|
if (Status != STATUS_WAIT_0)
|
||||||
{
|
{
|
||||||
/* Something is wrong with the subsystem, so back out of everything */
|
/* Something is wrong with the subsystem, so back out of everything */
|
||||||
DPRINT1("SMSS: SmpLoadSubSystem - Timeout waiting for subsystem connect with Status %lx for sessionid %ld\n",
|
DPRINT1("SMSS: SmpLoadSubSystem - Timeout waiting for subsystem connect with Status %lx for sessionid %lu\n",
|
||||||
Status,
|
Status,
|
||||||
MuSessionId);
|
MuSessionId);
|
||||||
goto Quickie;
|
goto Quickie;
|
||||||
|
@ -618,7 +618,7 @@ SmpLoadSubSystemsForMuSession(IN PULONG MuSessionId,
|
||||||
}
|
}
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DbgPrint("SMSS: Subsystem execute failed (%WZ)\n", &RegEntry->Value);
|
DbgPrint("SMSS: Subsystem execute failed (%wZ)\n", &RegEntry->Value);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue