This commit is contained in:
Bill Zissimopoulos 2015-11-19 17:26:53 -08:00
parent 9045db1026
commit 28fd09e70f
3 changed files with 18 additions and 3 deletions

View File

@ -34,5 +34,19 @@ FspCreate(
IoCompleteRequest(Irp, IO_NO_INCREMENT);
Result = STATUS_INVALID_DEVICE_REQUEST;
FSP_LEAVE_MJ("", 0);
FSP_LEAVE_MJ(
"FileObject=%p:\"%wZ\", "
"DesiredAccess=%#lx, "
"ShareAccess=%#x, "
"Options=%#lx, "
"FileAttributes=%#x, "
"AllocationSize=%#lx:%#lx, "
"Ea=%p, EaLength=%ld",
IrpSp->FileObject->RelatedFileObject, IrpSp->FileObject->FileName,
IrpSp->Parameters.Create.SecurityContext->DesiredAccess,
IrpSp->Parameters.Create.ShareAccess,
IrpSp->Parameters.Create.Options,
IrpSp->Parameters.Create.FileAttributes,
Irp->Overlay.AllocationSize.HighPart, Irp->Overlay.AllocationSize.LowPart,
Irp->AssociatedIrp.SystemBuffer, IrpSp->Parameters.Create.EaLength);
}

View File

@ -14,7 +14,7 @@ static ANSI_STRING DbgBreakPointInc = RTL_CONSTANT_STRING("Fsp*");
BOOLEAN HasDbgBreakPoint(const char *Function)
{
/* poor man's breakpoints; work around 32 breakpoints kernel limit */
if (KeGetCurrentIrql() > APC_LEVEL)
if (KeGetCurrentIrql() > APC_LEVEL) /* FsRtlIsDbcsInExpression restriction */
return TRUE;
ANSI_STRING Name;
RtlInitAnsiString(&Name, Function);

View File

@ -62,9 +62,10 @@
FSP_ENTER_(__VA_ARGS__)
#define FSP_LEAVE_MJ(fmt, ...) \
FSP_LEAVE_(" = %s", NtStatusSym(Result),\
"'%c', %s%s, Flags=%x, " \
"%c%c, %s%s, IrpSp->Flags=%x, " \
fmt, \
FspDeviceExtension(DeviceObject)->Kind,\
Irp->RequestorMode == KernelMode ? 'K' : 'U',\
IrpMajorFunctionSym(IrpSp->MajorFunction),\
IrpMinorFunctionSym(IrpSp->MajorFunction, IrpSp->MajorFunction),\
IrpSp->Flags, \