mirror of
https://github.com/winfsp/winfsp.git
synced 2025-07-30 06:15:12 -05:00
sys: driver.h: debug log now includes KeGetCurrentIrql()
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
/* DEBUGLOG */
|
/* DEBUGLOG */
|
||||||
#if DBG
|
#if DBG
|
||||||
#define DEBUGLOG(fmt, ...) \
|
#define DEBUGLOG(fmt, ...) \
|
||||||
DbgPrint(DRIVER_NAME "!" __FUNCTION__ ": " fmt "\n", __VA_ARGS__)
|
DbgPrint(DRIVER_NAME "!" __FUNCTION__ "[%d]: " fmt "\n", KeGetCurrentIrql(), __VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
#define DEBUGLOG(fmt, ...) ((void)0)
|
#define DEBUGLOG(fmt, ...) ((void)0)
|
||||||
#endif
|
#endif
|
||||||
@@ -32,13 +32,13 @@
|
|||||||
#if DBG
|
#if DBG
|
||||||
#define FSP_DEBUGLOG_(fmt, rfmt, ...) \
|
#define FSP_DEBUGLOG_(fmt, rfmt, ...) \
|
||||||
DbgPrint(AbnormalTermination() ? \
|
DbgPrint(AbnormalTermination() ? \
|
||||||
DRIVER_NAME "!" __FUNCTION__ "(" fmt ") = !AbnormalTermination\n" :\
|
DRIVER_NAME "!" __FUNCTION__ "[%d](" fmt ") = !AbnormalTermination\n" :\
|
||||||
DRIVER_NAME "!" __FUNCTION__ "(" fmt ")" rfmt "\n",\
|
DRIVER_NAME "!" __FUNCTION__ "[%d](" fmt ")" rfmt "\n",\
|
||||||
__VA_ARGS__)
|
KeGetCurrentIrql(), __VA_ARGS__)
|
||||||
#define FSP_DEBUGLOG_NOCRIT_(fmt, rfmt, ...)\
|
#define FSP_DEBUGLOG_NOCRIT_(fmt, rfmt, ...)\
|
||||||
DbgPrint( \
|
DbgPrint( \
|
||||||
DRIVER_NAME "!" __FUNCTION__ "(" fmt ")" rfmt "\n",\
|
DRIVER_NAME "!" __FUNCTION__ "[%d](" fmt ")" rfmt "\n",\
|
||||||
__VA_ARGS__)
|
KeGetCurrentIrql(), __VA_ARGS__)
|
||||||
#define FSP_DEBUGBRK_() \
|
#define FSP_DEBUGBRK_() \
|
||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
|
Reference in New Issue
Block a user