Log(): use DbgPrintEx so driver output is visible in DebugView

This commit is contained in:
Mattiwatti 2019-03-10 20:55:03 +01:00
parent 77ae4e97c3
commit 424dc35f70
No known key found for this signature in database
GPG key ID: D40D1DBE299B83EA
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -11,5 +11,6 @@ bin/
*.vddklaunch
*.reg
*.TMP
*.user
!BreakOnSysRq.reg
.vs/

View file

@ -7,7 +7,7 @@ void Log(const char* format, ...)
va_start(vl, format);
_vsnprintf(msg, sizeof(msg) / sizeof(char), format, vl);
#ifdef _DEBUG
DbgPrint(msg);
DbgPrintEx(DPFLTR_IHVDRIVER_ID, DPFLTR_ERROR_LEVEL, msg);
#endif
va_end(format);
UNICODE_STRING FileName;