sys: driver.h: debug log now includes KeGetCurrentIrql()

This commit is contained in:
Bill Zissimopoulos 2015-11-27 22:28:07 -08:00
parent 502c334294
commit 9e9e93238b

View File

@ -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 \
{ \ { \