VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-08-09 09:17:51 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-08-15 01:09:10 +0200
commit460f552a4173f8d798f52c2ad82c06a240094b17 (patch)
tree664c0232413faecc73fb0ee85eb9425847b7953f /src/Common
parent9bfe4780d4d23e5244b2784a80d7402268bee242 (diff)
downloadVeraCrypt-460f552a4173f8d798f52c2ad82c06a240094b17.tar.gz
VeraCrypt-460f552a4173f8d798f52c2ad82c06a240094b17.zip
Windows Driver: Add extra traces and enable tracing in release build if DEBUG_TRACE defined.
Diffstat (limited to 'src/Common')
-rw-r--r--src/Common/Tcdefs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Common/Tcdefs.h b/src/Common/Tcdefs.h
index 015a18aa..72d0e4ae 100644
--- a/src/Common/Tcdefs.h
+++ b/src/Common/Tcdefs.h
@@ -198,8 +198,8 @@ typedef int BOOL;
#endif
#ifdef DEVICE_DRIVER
-# if defined (DEBUG) || 0
-# if 1 // DbgPrintEx is not available on Windows 2000
+# if defined (DEBUG) || defined (DEBUG_TRACE)
+# if 0 // DbgPrintEx is not available on Windows 2000
# define Dump DbgPrint
# else
# define Dump(...) DbgPrintEx (DPFLTR_IHVDRIVER_ID, DPFLTR_ERROR_LEVEL, __VA_ARGS__)
@@ -212,7 +212,7 @@ typedef int BOOL;
#endif
#if !defined (trace_msg) && !defined (TC_WINDOWS_BOOT)
-# ifdef DEBUG
+# if defined(DEBUG) || defined (DEBUG_TRACE)
# ifdef DEVICE_DRIVER
# define trace_msg Dump
# elif defined (_WIN32)