Author: akhaldi
Date: Tue Sep 3 12:02:52 2013
New Revision: 59972
URL:
http://svn.reactos.org/svn/reactos?rev=59972&view=rev
Log:
[SMSS]
* Fix some print specifiers.
Modified:
trunk/reactos/base/system/smss/pagefile.c
trunk/reactos/base/system/smss/sminit.c
trunk/reactos/base/system/smss/smsessn.c
trunk/reactos/base/system/smss/smss.c
trunk/reactos/base/system/smss/smsubsys.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 Sep 3 12:02:52 2013
@@ -94,7 +94,7 @@
/* Make sure we don't have too many */
if (SmpNumberOfPagingFiles >= 16)
{
- DPRINT1("SMSS:PFILE: Too many paging files specified - %d\n",
+ DPRINT1("SMSS:PFILE: Too many paging files specified - %lu\n",
SmpNumberOfPagingFiles);
return STATUS_TOO_MANY_PAGING_FILES;
}
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 Sep 3 12:02:52 2013
@@ -236,7 +236,7 @@
/* Recreate the security descriptors to take into account security mode */
SmpCreateSecurityDescriptors(FALSE);
- DPRINT("SmpProtectionMode: %d\n", SmpProtectionMode);
+ DPRINT("SmpProtectionMode: %lu\n", SmpProtectionMode);
return STATUS_SUCCESS;
}
@@ -261,7 +261,7 @@
SmpAllowProtectedRenames = 0;
}
- DPRINT("SmpAllowProtectedRenames: %d\n", SmpAllowProtectedRenames);
+ DPRINT("SmpAllowProtectedRenames: %lu\n", SmpAllowProtectedRenames);
return STATUS_SUCCESS;
}
@@ -1819,13 +1819,13 @@
{
/* To combine it into a single string */
swprintf((PWCHAR)PartialInfo->Data + wcslen((PWCHAR)PartialInfo->Data),
- L", %ws",
+ L", %S",
PartialInfo2->Data);
}
/* So that we can set this as the PROCESSOR_IDENTIFIER variable */
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,
&ValueName,
0,
@@ -1884,7 +1884,7 @@
/* And finally, write the number of CPUs */
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);
Status = NtSetValueKey(KeyHandle,
&ValueName,
Modified: trunk/reactos/base/system/smss/smsessn.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/smss/smsessn.c…
==============================================================================
--- trunk/reactos/base/system/smss/smsessn.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/smss/smsessn.c [iso-8859-1] Tue Sep 3 12:02:52 2013
@@ -184,7 +184,7 @@
else
{
/* Failure -- assume session zero */
- DPRINT1("SMSS: GetProcessMuSessionId, Process=%x, Status=%x\n",
+ DPRINT1("SMSS: GetProcessMuSessionId, Process=%p, Status=%x\n",
ProcessHandle, Status);
*SessionId = 0;
}
@@ -207,7 +207,7 @@
sizeof(SessionId));
if (!NT_SUCCESS(Status))
{
- DPRINT1("SMSS: SetProcessMuSessionId, Process=%x, Status=%x\n",
+ DPRINT1("SMSS: SetProcessMuSessionId, Process=%p, Status=%x\n",
ProcessHandle, Status);
}
Modified: trunk/reactos/base/system/smss/smss.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/smss/smss.c?re…
==============================================================================
--- trunk/reactos/base/system/smss/smss.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/smss/smss.c [iso-8859-1] Tue Sep 3 12:02:52 2013
@@ -420,7 +420,7 @@
UNICODE_STRING DestinationString;
/* 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->ExceptionAddress);
DbgPrint(" Memory Address: %x Read/Write: %x\n",
Modified: trunk/reactos/base/system/smss/smsubsys.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/smss/smsubsys.…
==============================================================================
--- trunk/reactos/base/system/smss/smsubsys.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/smss/smsubsys.c [iso-8859-1] Tue Sep 3 12:02:52 2013
@@ -330,7 +330,7 @@
{
/* Odd failure -- but handle it anyway */
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,
MuSessionId);
goto Quickie;
@@ -347,7 +347,7 @@
if (!NT_SUCCESS(Status))
{
/* 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,
MuSessionId);
goto Quickie;
@@ -364,7 +364,7 @@
if (!NT_SUCCESS(Status))
{
/* 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,
MuSessionId);
goto Quickie;
@@ -387,7 +387,7 @@
{
/* Delete the session and handle failure if the LPC call failed */
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,
CreateSession->SessionId);
goto Quickie;
@@ -422,7 +422,7 @@
if (Status != STATUS_WAIT_0)
{
/* 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,
MuSessionId);
goto Quickie;
@@ -618,7 +618,7 @@
}
if (!NT_SUCCESS(Status))
{
- DbgPrint("SMSS: Subsystem execute failed (%WZ)\n",
&RegEntry->Value);
+ DbgPrint("SMSS: Subsystem execute failed (%wZ)\n",
&RegEntry->Value);
return Status;
}