[NTOSKRNL]

- Fix some DPRINTs. Spotted by VS11.

svn path=/trunk/; revision=55161
This commit is contained in:
Thomas Faber 2012-01-25 00:09:43 +00:00
parent e4c4891711
commit e724bc4582
4 changed files with 10 additions and 10 deletions

View file

@ -74,11 +74,11 @@ MiSimpleReadComplete
PMDL Mdl = Irp->MdlAddress; PMDL Mdl = Irp->MdlAddress;
/* Unlock MDL Pages, page 167. */ /* Unlock MDL Pages, page 167. */
DPRINT("MiSimpleReadComplete %x\n", Irp); DPRINT("MiSimpleReadComplete %p\n", Irp);
while (Mdl) while (Mdl)
{ {
DPRINT("MDL Unlock %x\n", Mdl); DPRINT("MDL Unlock %p\n", Mdl);
MmUnlockPages(Mdl); MmUnlockPages(Mdl);
Mdl = Mdl->Next; Mdl = Mdl->Next;
} }
@ -123,8 +123,8 @@ MiSimpleRead
ASSERT(DeviceObject); ASSERT(DeviceObject);
DPRINT DPRINT
("PAGING READ: FileObject %x <%wZ> Offset %08x%08x Length %d\n", ("PAGING READ: FileObject %p <%wZ> Offset %08x%08x Length %d\n",
&FileObject, FileObject,
&FileObject->FileName, &FileObject->FileName,
FileOffset->HighPart, FileOffset->HighPart,
FileOffset->LowPart, FileOffset->LowPart,
@ -215,8 +215,8 @@ _MiSimpleWrite
ASSERT(DeviceObject); ASSERT(DeviceObject);
DPRINT DPRINT
("PAGING WRITE: FileObject %x Offset %x Length %d (%s:%d)\n", ("PAGING WRITE: FileObject %p Offset %x Length %d (%s:%d)\n",
&FileObject, FileObject,
FileOffset->LowPart, FileOffset->LowPart,
Length, Length,
File, File,

View file

@ -866,7 +866,7 @@ CcRosGetCacheSegment(PBCB Bcb,
*/ */
*UptoDate = current->Valid; *UptoDate = current->Valid;
*BaseAddress = current->BaseAddress; *BaseAddress = current->BaseAddress;
DPRINT("*BaseAddress 0x%.8X\n", *BaseAddress); DPRINT("*BaseAddress %p\n", *BaseAddress);
*CacheSeg = current; *CacheSeg = current;
*BaseOffset = current->FileOffset; *BaseOffset = current->FileOffset;
return(STATUS_SUCCESS); return(STATUS_SUCCESS);

View file

@ -64,7 +64,7 @@ KiDumpTrapFrame(IN PKTRAP_FRAME TrapFrame)
DbgPrint("Ecx: %x\n", TrapFrame->Ecx); DbgPrint("Ecx: %x\n", TrapFrame->Ecx);
DbgPrint("Eax: %x\n", TrapFrame->Eax); DbgPrint("Eax: %x\n", TrapFrame->Eax);
DbgPrint("PreviousPreviousMode: %x\n", TrapFrame->PreviousPreviousMode); 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("SegFs: %x\n", TrapFrame->SegFs);
DbgPrint("Edi: %x\n", TrapFrame->Edi); DbgPrint("Edi: %x\n", TrapFrame->Edi);
DbgPrint("Esi: %x\n", TrapFrame->Esi); DbgPrint("Esi: %x\n", TrapFrame->Esi);

View file

@ -398,7 +398,7 @@ ObpCalloutEnd(IN KIRQL CalloutIrql,
if (CalloutIrql != KeGetCurrentIrql()) if (CalloutIrql != KeGetCurrentIrql())
{ {
/* Print error */ /* Print error */
DbgPrint("OB: ObjectType: %wZ Procedure: %s Object: %08x\n", DbgPrint("OB: ObjectType: %wZ Procedure: %s Object: %p\n",
&ObjectType->Name, Procedure, Object); &ObjectType->Name, Procedure, Object);
DbgPrint(" Returned at %x IRQL, but was called at %x IRQL\n", DbgPrint(" Returned at %x IRQL, but was called at %x IRQL\n",
KeGetCurrentIrql(), CalloutIrql); KeGetCurrentIrql(), CalloutIrql);