diff options
author | Gerald Combs <gerald@wireshark.org> | 2016-07-28 12:26:19 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2016-07-29 00:12:09 +0000 |
commit | 0b9f2fca533b9330dff9a99c999017c0e6ee8bfa (patch) | |
tree | 1eea9974318f0b28b95e247ab5bf3d9960d921d7 /epan/crypt/airpdcap_debug.h | |
parent | 3aedb1e256060e361739c10c9ef919a4f4794fe1 (diff) |
Enable airpdcap debugging explicitly.
Enable airpdcap debugging with explicitly with AIRPDCAP_DEBUG instead
of _DEBUG. _DEBUG might be defined automatically by Visual C++ depending
on your build type and the extra output breaks the decryption tests.
Change-Id: If6d918beb4d91233b07a3bc7b6f2f7e1849171f0
Reviewed-on: https://code.wireshark.org/review/16755
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'epan/crypt/airpdcap_debug.h')
-rw-r--r-- | epan/crypt/airpdcap_debug.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/epan/crypt/airpdcap_debug.h b/epan/crypt/airpdcap_debug.h index 149384e8ed..118552260a 100644 --- a/epan/crypt/airpdcap_debug.h +++ b/epan/crypt/airpdcap_debug.h @@ -37,7 +37,9 @@ #include "airpdcap_interop.h" -#ifdef _DEBUG +/* #define AIRPDCAP_DEBUG 1 */ + +#ifdef AIRPDCAP_DEBUG #ifdef __FUNCTION__ #define AIRPDCAP_DEBUG_PRINT_LINE(notdefined, msg, level) print_debug_line(__FUNCTION__, msg, level); #else @@ -54,7 +56,7 @@ /******************************************************************************/ /* Debug section: internal function to print debug information */ /* */ -#ifdef _DEBUG +#ifdef AIRPDCAP_DEBUG #include <stdio.h> #include <time.h> @@ -100,7 +102,7 @@ static inline void DEBUG_DUMP(const char* x, const guint8* y, int z) wmem_free(NULL, tmp_str); } -#else /* !defined _DEBUG */ +#else /* !defined AIRPDCAP_DEBUG */ #define AIRPDCAP_DEBUG_LEVEL_1 #define AIRPDCAP_DEBUG_LEVEL_2 @@ -113,7 +115,7 @@ static inline void DEBUG_DUMP(const char* x, const guint8* y, int z) #define DEBUG_DUMP(x,y,z) -#endif /* ?defined _DEBUG */ +#endif /* ?defined AIRPDCAP_DEBUG */ #endif /* ?defined _AIRPDCAP_DEBUG_H */ |