mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-25 01:42:24 -05:00
sys: FspDebugLogIrp
This commit is contained in:
parent
3692f71205
commit
e8eccef80a
@ -46,7 +46,7 @@
|
|||||||
|
|
||||||
/* DEBUGLOGIRP */
|
/* DEBUGLOGIRP */
|
||||||
#if DBG
|
#if DBG
|
||||||
#define DEBUGLOGIRP(Irp, Result) FspDebugLogIrp(Irp, Result)
|
#define DEBUGLOGIRP(Irp, Result) FspDebugLogIrp(__FUNCTION__, Irp, Result)
|
||||||
#else
|
#else
|
||||||
#define DEBUGLOGIRP(Irp, Result) ((void)0)
|
#define DEBUGLOGIRP(Irp, Result) ((void)0)
|
||||||
#endif
|
#endif
|
||||||
@ -599,10 +599,12 @@ const char *IrpMajorFunctionSym(UCHAR MajorFunction);
|
|||||||
const char *IrpMinorFunctionSym(UCHAR MajorFunction, UCHAR MinorFunction);
|
const char *IrpMinorFunctionSym(UCHAR MajorFunction, UCHAR MinorFunction);
|
||||||
const char *IoctlCodeSym(ULONG ControlCode);
|
const char *IoctlCodeSym(ULONG ControlCode);
|
||||||
static inline
|
static inline
|
||||||
VOID FspDebugLogIrp(PIRP Irp, NTSTATUS Result)
|
VOID FspDebugLogIrp(const char *func, PIRP Irp, NTSTATUS Result)
|
||||||
{
|
{
|
||||||
PIO_STACK_LOCATION IrpSp = IoGetCurrentIrpStackLocation(Irp);
|
PIO_STACK_LOCATION IrpSp = IoGetCurrentIrpStackLocation(Irp);
|
||||||
DEBUGLOG("IRP=%p, %s%c, %s%s, IoStatus=%s[%lld]",
|
DbgPrint("[%d] " DRIVER_NAME "!%s: IRP=%p, %s%c, %s%s, IoStatus=%s[%lld]\n",
|
||||||
|
KeGetCurrentIrql(),
|
||||||
|
func,
|
||||||
Irp,
|
Irp,
|
||||||
(const char *)&FspDeviceExtension(IrpSp->DeviceObject)->Kind,
|
(const char *)&FspDeviceExtension(IrpSp->DeviceObject)->Kind,
|
||||||
Irp->RequestorMode == KernelMode ? 'K' : 'U',
|
Irp->RequestorMode == KernelMode ? 'K' : 'U',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user