changing many printouts
This commit is contained in:
parent
48d6775211
commit
d42f769bff
5 changed files with 338 additions and 261 deletions
|
|
@ -200,7 +200,7 @@ void print_driver_state(int state)
|
|||
void print_basic_info(int on, PFILE_BASIC_INFORMATION info)
|
||||
{
|
||||
if (!on) return;
|
||||
DbgP("BASIC_INFO: Create=%x Access=%x Write=%x Change=%x Attr=%x\n",
|
||||
DbgP("BASIC_INFO: Create=%lx Access=%lx Write=%lx Change=%lx Attr=%x\n",
|
||||
info->CreationTime.QuadPart, info->LastAccessTime.QuadPart,
|
||||
info->LastWriteTime.QuadPart, info->ChangeTime.QuadPart,
|
||||
info->FileAttributes);
|
||||
|
|
@ -208,9 +208,10 @@ void print_basic_info(int on, PFILE_BASIC_INFORMATION info)
|
|||
void print_std_info(int on, PFILE_STANDARD_INFORMATION info)
|
||||
{
|
||||
if (!on) return;
|
||||
DbgP("STD_INFO: Type=%s #Links=%d Alloc=%x EOF=%x Delete=%d\n",
|
||||
DbgP("STD_INFO: Type=%s #Links=%d Alloc=%lx EOF=%lx Delete=%d\n",
|
||||
info->Directory?"DIR":"FILE", info->NumberOfLinks,
|
||||
info->AllocationSize, info->EndOfFile, info->DeletePending);
|
||||
info->AllocationSize.QuadPart, info->EndOfFile.QuadPart,
|
||||
info->DeletePending);
|
||||
}
|
||||
|
||||
void print_ea_info(int on, PFILE_FULL_EA_INFORMATION info)
|
||||
|
|
@ -668,6 +669,7 @@ void print_open_error(int on, int status)
|
|||
void print_wait_status(int on, const char *prefix, NTSTATUS status,
|
||||
const char *opcode, PVOID entry, LONGLONG xid)
|
||||
{
|
||||
if (!on) return;
|
||||
switch (status) {
|
||||
case STATUS_SUCCESS:
|
||||
if (opcode)
|
||||
|
|
|
|||
|
|
@ -60,18 +60,18 @@ void print_wait_status(int on, const char *str, NTSTATUS status,
|
|||
void print_acl_args(SECURITY_INFORMATION info);
|
||||
|
||||
#define DbgEn() DbgPrintEx(DPFLTR_IHVNETWORK_ID, DPFLTR_ERROR_LEVEL, \
|
||||
"--> [%s] [%d] %s\n", _DRIVER_NAME_, IoGetCurrentProcess(), \
|
||||
"--> [%s] [%04x] %s\n", _DRIVER_NAME_, PsGetCurrentProcessId(), \
|
||||
__FUNCTION__); try {
|
||||
|
||||
#define DbgEx() DbgPrintEx(DPFLTR_IHVNETWORK_ID, DPFLTR_ERROR_LEVEL, \
|
||||
"<-- [%s] [%d] %s status = %08lx\n", _DRIVER_NAME_, IoGetCurrentProcess(), \
|
||||
"<-- [%s] [%04x] %s status = %08lx\n", _DRIVER_NAME_, PsGetCurrentProcessId(), \
|
||||
__FUNCTION__, status); \
|
||||
} except (EXCEPTION_EXECUTE_HANDLER) { \
|
||||
status = GetExceptionCode() ; \
|
||||
DbgP("Exception encountered with value = Ox%x\n", status); \
|
||||
}
|
||||
#define DbgR() DbgPrintEx(DPFLTR_IHVNETWORK_ID, DPFLTR_ERROR_LEVEL, \
|
||||
"<-- [%s] [%d] %s\n", _DRIVER_NAME_, IoGetCurrentProcess(), __FUNCTION__); \
|
||||
"<-- [%s] [%04x] %s\n", _DRIVER_NAME_, PsGetCurrentProcessId(), __FUNCTION__); \
|
||||
} except (EXCEPTION_EXECUTE_HANDLER) { \
|
||||
NTSTATUS status; \
|
||||
status = GetExceptionCode() ; \
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue