mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-14 15:52:47 -05:00
dll: FspDebugLog
sys: DEBUGLOG
This commit is contained in:
@ -7,6 +7,7 @@
|
||||
#ifndef WINFSP_SYS_DRIVER_H_INCLUDED
|
||||
#define WINFSP_SYS_DRIVER_H_INCLUDED
|
||||
|
||||
#define WINFSP_SYS_INTERNAL
|
||||
#include <ntifs.h>
|
||||
#include <ntstrsafe.h>
|
||||
#include <wdmsec.h>
|
||||
@ -23,7 +24,7 @@
|
||||
/* DEBUGLOG */
|
||||
#if DBG
|
||||
#define DEBUGLOG(fmt, ...) \
|
||||
DbgPrint(DRIVER_NAME "!" __FUNCTION__ "[%d]: " fmt "\n", KeGetCurrentIrql(), __VA_ARGS__)
|
||||
DbgPrint("[%d] " DRIVER_NAME "!" __FUNCTION__ ": " fmt "\n", KeGetCurrentIrql(), __VA_ARGS__)
|
||||
#else
|
||||
#define DEBUGLOG(fmt, ...) ((void)0)
|
||||
#endif
|
||||
@ -32,12 +33,12 @@
|
||||
#if DBG
|
||||
#define FSP_DEBUGLOG_(fmt, rfmt, ...) \
|
||||
DbgPrint(AbnormalTermination() ? \
|
||||
DRIVER_NAME "!" __FUNCTION__ "[%d](" fmt ") = !AbnormalTermination\n" :\
|
||||
DRIVER_NAME "!" __FUNCTION__ "[%d](" fmt ")" rfmt "\n",\
|
||||
"[%d] " DRIVER_NAME "!" __FUNCTION__ "(" fmt ") = !AbnormalTermination\n" :\
|
||||
"[%d] " DRIVER_NAME "!" __FUNCTION__ "(" fmt ")" rfmt "\n",\
|
||||
KeGetCurrentIrql(), __VA_ARGS__)
|
||||
#define FSP_DEBUGLOG_NOCRIT_(fmt, rfmt, ...)\
|
||||
DbgPrint( \
|
||||
DRIVER_NAME "!" __FUNCTION__ "[%d](" fmt ")" rfmt "\n",\
|
||||
"[%d] " DRIVER_NAME "!" __FUNCTION__ "(" fmt ")" rfmt "\n",\
|
||||
KeGetCurrentIrql(), __VA_ARGS__)
|
||||
#define FSP_DEBUGBRK_() \
|
||||
do \
|
||||
|
Reference in New Issue
Block a user