BOOLEAN
RawFsIsRawFileSystemDeviceObject(IN PDEVICE_OBJECT DeviceObject)
{
- DPRINT("RawFsIsRawFileSystemDeviceObject(DeviceObject %x)\n", DeviceObject);
+ DPRINT("RawFsIsRawFileSystemDeviceObject(DeviceObject 0x%p)\n", DeviceObject);
if (DeviceObject == DiskDeviceObject)
return TRUE;
KeInitializeEvent(&Event, NotificationEvent, FALSE);
- DPRINT("RawFsReadDisk(pDeviceObject %x, Offset %I64x, Length %d, Buffer %x)\n",
+ DPRINT("RawFsReadDisk(pDeviceObject 0x%p, Offset %I64x, Length %d, Buffer 0x%p)\n",
pDeviceObject, ReadOffset->QuadPart, ReadLength, Buffer);
DPRINT ("Building synchronous FSD Request...\n");
return STATUS_UNSUCCESSFUL;
}
- DPRINT("Calling IO Driver... with irp %x\n", Irp);
+ DPRINT("Calling IO Driver... with irp 0x%p\n", Irp);
Status = IoCallDriver(pDeviceObject, Irp);
- DPRINT("Waiting for IO Operation for %x\n", Irp);
+ DPRINT("Waiting for IO Operation for 0x%p\n", Irp);
if (Status == STATUS_PENDING)
{
DPRINT("Operation pending\n");
KeWaitForSingleObject (&Event, Suspended, KernelMode, FALSE, NULL);
- DPRINT("Getting IO Status... for %x\n", Irp);
+ DPRINT("Getting IO Status... for 0x%p\n", Irp);
Status = IoStatus.Status;
}
if (!NT_SUCCESS(Status))
{
DPRINT("RawFsReadDisk() failed. Status %x\n", Status);
- DPRINT("(pDeviceObject %x, Offset %I64x, Size %d, Buffer %x\n",
+ DPRINT("(pDeviceObject 0x%p, Offset %I64x, Size %d, Buffer 0x%p\n",
pDeviceObject, ReadOffset->QuadPart, ReadLength, Buffer);
return Status;
}
- DPRINT("Block request succeeded for %x\n", Irp);
+ DPRINT("Block request succeeded for 0x%p\n", Irp);
return STATUS_SUCCESS;
}
KEVENT Event;
PIRP Irp;
- DPRINT("RawFsWriteDisk(pDeviceObject %x, Offset %I64x, Size %d, Buffer %x)\n",
+ DPRINT("RawFsWriteDisk(pDeviceObject 0x%p, Offset %I64x, Size %d, Buffer 0x%p)\n",
pDeviceObject, WriteOffset->QuadPart, WriteLength, Buffer);
KeInitializeEvent(&Event, NotificationEvent, FALSE);
if (!NT_SUCCESS(Status))
{
DPRINT("RawFsWriteDisk() failed. Status %x\n", Status);
- DPRINT("(pDeviceObject %x, Offset %I64x, Size %d, Buffer %x\n",
+ DPRINT("(pDeviceObject 0x%p, Offset %I64x, Size %d, Buffer 0x%p\n",
pDeviceObject, WriteOffset->QuadPart, WriteLength, Buffer);
return Status;
}
IO_STATUS_BLOCK IoStatus;
NTSTATUS Status;
- DPRINT("RawFsBlockDeviceIoControl(DeviceObject %x, CtlCode %x, "
- "InputBuffer %x, InputBufferSize %x, OutputBuffer %x, "
- "POutputBufferSize %x (%x)\n", DeviceObject, CtlCode,
+ DPRINT("RawFsBlockDeviceIoControl(DeviceObject 0x%p, CtlCode %x, "
+ "InputBuffer 0x%p, InputBufferSize %x, OutputBuffer 0x%p, "
+ "POutputBufferSize 0x%p (%x)\n", DeviceObject, CtlCode,
InputBuffer, InputBufferSize, OutputBuffer, pOutputBufferSize,
pOutputBufferSize ? *pOutputBufferSize : 0);
return STATUS_INSUFFICIENT_RESOURCES;
}
- DPRINT("Calling IO Driver... with irp %x\n", Irp);
+ DPRINT("Calling IO Driver... with irp 0x%p\n", Irp);
Status = IoCallDriver(DeviceObject, Irp);
- DPRINT("Waiting for IO Operation for %x\n", Irp);
+ DPRINT("Waiting for IO Operation for 0x%p\n", Irp);
if (Status == STATUS_PENDING)
{
DPRINT("Operation pending\n");
KeWaitForSingleObject (&Event, Suspended, KernelMode, FALSE, NULL);
- DPRINT("Getting IO Status... for %x\n", Irp);
+ DPRINT("Getting IO Status... for 0x%p\n", Irp);
Status = IoStatus.Status;
}
if (OutputBufferSize)
PRAWFS_IRP_CONTEXT IrpContext;
UCHAR MajorFunction;
- DPRINT("RawFsAllocateIrpContext(DeviceObject %x, Irp %x)\n", DeviceObject, Irp);
+ DPRINT("RawFsAllocateIrpContext(DeviceObject 0x%p, Irp 0x%p)\n", DeviceObject, Irp);
ASSERT(DeviceObject);
ASSERT(Irp);
static VOID
RawFsFreeIrpContext(IN PRAWFS_IRP_CONTEXT IrpContext)
{
- DPRINT("RawFsFreeIrpContext(IrpContext %x)\n", IrpContext);
+ DPRINT("RawFsFreeIrpContext(IrpContext 0x%p)\n", IrpContext);
ASSERT(IrpContext);
Count = InterlockedDecrement(&RawFsQueueCount);
- DPRINT("RawFsDoRequest(IrpContext %x), MajorFunction %x, %d\n",
+ DPRINT("RawFsDoRequest(IrpContext 0x%p), MajorFunction %x, %d\n",
IrpContext, ((PRAWFS_IRP_CONTEXT) IrpContext)->MajorFunction, Count);
RawFsDispatchRequest((PRAWFS_IRP_CONTEXT) IrpContext);
Count = InterlockedIncrement(&RawFsQueueCount);
- DPRINT("RawFsQueueRequest (IrpContext %x), %d\n", IrpContext, Count);
+ DPRINT("RawFsQueueRequest (IrpContext 0x%p), %d\n", IrpContext, Count);
IrpContext->Flags |= IRPCONTEXT_CANWAIT;
IoMarkIrpPending (IrpContext->Irp);
static NTSTATUS
RawFsClose(IN PRAWFS_IRP_CONTEXT IrpContext)
{
- DPRINT("RawFsClose(IrpContext %x)\n", IrpContext);
+ DPRINT("RawFsClose(IrpContext 0x%p)\n", IrpContext);
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
}
{
NTSTATUS Status;
- DPRINT("RawFsCreate(IrpContext %x)\n", IrpContext);
+ DPRINT("RawFsCreate(IrpContext 0x%p)\n", IrpContext);
ASSERT(IrpContext);
static NTSTATUS
RawFsRead(IN PRAWFS_IRP_CONTEXT IrpContext)
{
- DPRINT("RawFsRead(IrpContext %x)\n", IrpContext);
+ DPRINT("RawFsRead(IrpContext 0x%p)\n", IrpContext);
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
}
static NTSTATUS
RawFsWrite(IN PRAWFS_IRP_CONTEXT IrpContext)
{
- DPRINT("RawFsWrite(IrpContext %x)\n", IrpContext);
+ DPRINT("RawFsWrite(IrpContext 0x%p)\n", IrpContext);
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
}
NTSTATUS Status;
ULONG Size;
- DPRINT("RawFsMount(IrpContext %x)\n", IrpContext);
+ DPRINT("RawFsMount(IrpContext 0x%p)\n", IrpContext);
ASSERT(IrpContext);
{
NTSTATUS Status;
- DPRINT("RawFsFileSystemControl(IrpContext %x)\n", IrpContext);
+ DPRINT("RawFsFileSystemControl(IrpContext 0x%p)\n", IrpContext);
ASSERT(IrpContext);
static NTSTATUS
RawFsQueryInformation(IN PRAWFS_IRP_CONTEXT IrpContext)
{
- DPRINT("RawFsQueryInformation(IrpContext %x)\n", IrpContext);
+ DPRINT("RawFsQueryInformation(IrpContext 0x%p)\n", IrpContext);
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
}
static NTSTATUS
RawFsSetInformation(IN PRAWFS_IRP_CONTEXT IrpContext)
{
- DPRINT("RawFsSetInformation(IrpContext %x)\n", IrpContext);
+ DPRINT("RawFsSetInformation(IrpContext 0x%p)\n", IrpContext);
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
}
static NTSTATUS
RawFsDirectoryControl(IN PRAWFS_IRP_CONTEXT IrpContext)
{
- DPRINT("RawFsDirectoryControl(IrpContext %x)\n", IrpContext);
+ DPRINT("RawFsDirectoryControl(IrpContext 0x%p)\n", IrpContext);
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
}
static NTSTATUS
RawFsQueryVolumeInformation(IN PRAWFS_IRP_CONTEXT IrpContext)
{
- DPRINT("RawFsQueryVolumeInformation(IrpContext %x)\n", IrpContext);
+ DPRINT("RawFsQueryVolumeInformation(IrpContext 0x%p)\n", IrpContext);
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
}
static NTSTATUS
RawFsSetVolumeInformation(IN PRAWFS_IRP_CONTEXT IrpContext)
{
- DPRINT("RawFsSetVolumeInformation(IrpContext %x)\n", IrpContext);
+ DPRINT("RawFsSetVolumeInformation(IrpContext 0x%p)\n", IrpContext);
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
}
static NTSTATUS
RawFsLockControl(IN PRAWFS_IRP_CONTEXT IrpContext)
{
- DPRINT("RawFsLockControl(IrpContext %x)\n", IrpContext);
+ DPRINT("RawFsLockControl(IrpContext 0x%p)\n", IrpContext);
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
}
static NTSTATUS
RawFsCleanup(IN PRAWFS_IRP_CONTEXT IrpContext)
{
- DPRINT("RawFsCleanup(IrpContext %x)\n", IrpContext);
+ DPRINT("RawFsCleanup(IrpContext 0x%p)\n", IrpContext);
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
}
static NTSTATUS
RawFsFlush(IN PRAWFS_IRP_CONTEXT IrpContext)
{
- DPRINT("RawFsFlush(IrpContext %x)\n", IrpContext);
+ DPRINT("RawFsFlush(IrpContext 0x%p)\n", IrpContext);
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
}
static NTSTATUS STDCALL
RawFsShutdown(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
{
- DPRINT("RawFsShutdown(DeviceObject %x, Irp %x)\n", DeviceObject, Irp);
+ DPRINT("RawFsShutdown(DeviceObject 0x%p, Irp 0x%p)\n", DeviceObject, Irp);
/*
* Note: Do NOT call UNIMPLEMENTED here!
static NTSTATUS
RawFsDispatchRequest(IN PRAWFS_IRP_CONTEXT IrpContext)
{
- DPRINT("RawFsDispatchRequest(IrpContext %x), MajorFunction %x\n",
+ DPRINT("RawFsDispatchRequest(IrpContext 0x%p), MajorFunction %x\n",
IrpContext, IrpContext->MajorFunction);
ASSERT(IrpContext);
PRAWFS_IRP_CONTEXT IrpContext;
NTSTATUS Status;
- DPRINT("RawFsBuildRequest(DeviceObject %x, Irp %x)\n", DeviceObject, Irp);
+ DPRINT("RawFsBuildRequest(DeviceObject 0x%p, Irp 0x%p)\n", DeviceObject, Irp);
ASSERT(DeviceObject);
ASSERT(Irp);