mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
- Print the major function codes if debug prints are enabled.
svn path=/trunk/; revision=13283
This commit is contained in:
parent
9147b52d01
commit
0d6305b3bc
1 changed files with 39 additions and 3 deletions
|
@ -13,6 +13,41 @@
|
|||
#define NDEBUG
|
||||
#include "vfat.h"
|
||||
|
||||
/* GLOBALS ******************************************************************/
|
||||
|
||||
const char* MajorFunctionNames[] =
|
||||
{
|
||||
"IRP_MJ_CREATE",
|
||||
"IRP_MJ_CREATE_NAMED_PIPE",
|
||||
"IRP_MJ_CLOSE",
|
||||
"IRP_MJ_READ",
|
||||
"IRP_MJ_WRITE",
|
||||
"IRP_MJ_QUERY_INFORMATION",
|
||||
"IRP_MJ_SET_INFORMATION",
|
||||
"IRP_MJ_QUERY_EA",
|
||||
"IRP_MJ_SET_EA",
|
||||
"IRP_MJ_FLUSH_BUFFERS",
|
||||
"IRP_MJ_QUERY_VOLUME_INFORMATION",
|
||||
"IRP_MJ_SET_VOLUME_INFORMATION",
|
||||
"IRP_MJ_DIRECTORY_CONTROL",
|
||||
"IRP_MJ_FILE_SYSTEM_CONTROL",
|
||||
"IRP_MJ_DEVICE_CONTROL",
|
||||
"IRP_MJ_INTERNAL_DEVICE_CONTROL",
|
||||
"IRP_MJ_SHUTDOWN",
|
||||
"IRP_MJ_LOCK_CONTROL",
|
||||
"IRP_MJ_CLEANUP",
|
||||
"IRP_MJ_CREATE_MAILSLOT",
|
||||
"IRP_MJ_QUERY_SECURITY",
|
||||
"IRP_MJ_SET_SECURITY",
|
||||
"IRP_MJ_POWER",
|
||||
"IRP_MJ_SYSTEM_CONTROL",
|
||||
"IRP_MJ_DEVICE_CHANGE",
|
||||
"IRP_MJ_QUERY_QUOTA",
|
||||
"IRP_MJ_SET_QUOTA",
|
||||
"IRP_MJ_PNP",
|
||||
"IRP_MJ_MAXIMUM_FUNCTION"
|
||||
};
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
static LONG QueueCount = 0;
|
||||
|
@ -57,10 +92,11 @@ Fail:;
|
|||
return Status;
|
||||
}
|
||||
|
||||
NTSTATUS VfatDispatchRequest (
|
||||
IN PVFAT_IRP_CONTEXT IrpContext)
|
||||
NTSTATUS
|
||||
VfatDispatchRequest (IN PVFAT_IRP_CONTEXT IrpContext)
|
||||
{
|
||||
DPRINT ("VfatDispatchRequest (IrpContext %x), MajorFunction %x\n", IrpContext, IrpContext->MajorFunction);
|
||||
DPRINT ("VfatDispatchRequest (IrpContext %x), is called for %s\n", IrpContext,
|
||||
IrpContext->MajorFunction >= IRP_MJ_MAXIMUM_FUNCTION ? "????" : MajorFunctionNames[IrpContext->MajorFunction]);
|
||||
|
||||
ASSERT(IrpContext);
|
||||
|
||||
|
|
Loading…
Reference in a new issue