Author: tfaber
Date: Wed Jan 25 00:09:43 2012
New Revision: 55161
URL:
http://svn.reactos.org/svn/reactos?rev=55161&view=rev
Log:
[NTOSKRNL]
- Fix some DPRINTs. Spotted by VS11.
Modified:
trunk/reactos/ntoskrnl/cache/section/io.c
trunk/reactos/ntoskrnl/cc/view.c
trunk/reactos/ntoskrnl/include/internal/i386/trap_x.h
trunk/reactos/ntoskrnl/include/internal/ob_x.h
Modified: trunk/reactos/ntoskrnl/cache/section/io.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cache/section/io.…
==============================================================================
--- trunk/reactos/ntoskrnl/cache/section/io.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/cache/section/io.c [iso-8859-1] Wed Jan 25 00:09:43 2012
@@ -74,11 +74,11 @@
PMDL Mdl = Irp->MdlAddress;
/* Unlock MDL Pages, page 167. */
- DPRINT("MiSimpleReadComplete %x\n", Irp);
+ DPRINT("MiSimpleReadComplete %p\n", Irp);
while (Mdl)
{
- DPRINT("MDL Unlock %x\n", Mdl);
- MmUnlockPages(Mdl);
+ DPRINT("MDL Unlock %p\n", Mdl);
+ MmUnlockPages(Mdl);
Mdl = Mdl->Next;
}
@@ -123,8 +123,8 @@
ASSERT(DeviceObject);
DPRINT
- ("PAGING READ: FileObject %x <%wZ> Offset %08x%08x Length %d\n",
- &FileObject,
+ ("PAGING READ: FileObject %p <%wZ> Offset %08x%08x Length %d\n",
+ FileObject,
&FileObject->FileName,
FileOffset->HighPart,
FileOffset->LowPart,
@@ -215,8 +215,8 @@
ASSERT(DeviceObject);
DPRINT
- ("PAGING WRITE: FileObject %x Offset %x Length %d (%s:%d)\n",
- &FileObject,
+ ("PAGING WRITE: FileObject %p Offset %x Length %d (%s:%d)\n",
+ FileObject,
FileOffset->LowPart,
Length,
File,
Modified: trunk/reactos/ntoskrnl/cc/view.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/cc/view.c?rev=551…
==============================================================================
--- trunk/reactos/ntoskrnl/cc/view.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/cc/view.c [iso-8859-1] Wed Jan 25 00:09:43 2012
@@ -866,7 +866,7 @@
*/
*UptoDate = current->Valid;
*BaseAddress = current->BaseAddress;
- DPRINT("*BaseAddress 0x%.8X\n", *BaseAddress);
+ DPRINT("*BaseAddress %p\n", *BaseAddress);
*CacheSeg = current;
*BaseOffset = current->FileOffset;
return(STATUS_SUCCESS);
Modified: trunk/reactos/ntoskrnl/include/internal/i386/trap_x.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/i386/trap_x.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/i386/trap_x.h [iso-8859-1] Wed Jan 25 00:09:43
2012
@@ -64,7 +64,7 @@
DbgPrint("Ecx: %x\n", TrapFrame->Ecx);
DbgPrint("Eax: %x\n", TrapFrame->Eax);
DbgPrint("PreviousPreviousMode: %x\n",
TrapFrame->PreviousPreviousMode);
- DbgPrint("ExceptionList: %x\n", TrapFrame->ExceptionList);
+ DbgPrint("ExceptionList: %p\n", TrapFrame->ExceptionList);
DbgPrint("SegFs: %x\n", TrapFrame->SegFs);
DbgPrint("Edi: %x\n", TrapFrame->Edi);
DbgPrint("Esi: %x\n", TrapFrame->Esi);
Modified: trunk/reactos/ntoskrnl/include/internal/ob_x.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/ob_x.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/ob_x.h [iso-8859-1] Wed Jan 25 00:09:43 2012
@@ -398,7 +398,7 @@
if (CalloutIrql != KeGetCurrentIrql())
{
/* Print error */
- DbgPrint("OB: ObjectType: %wZ Procedure: %s Object: %08x\n",
+ DbgPrint("OB: ObjectType: %wZ Procedure: %s Object: %p\n",
&ObjectType->Name, Procedure, Object);
DbgPrint(" Returned at %x IRQL, but was called at %x IRQL\n",
KeGetCurrentIrql(), CalloutIrql);