summaryrefslogtreecommitdiffstats
path: root/epan/crypt/dot11decrypt_debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'epan/crypt/dot11decrypt_debug.h')
-rw-r--r--epan/crypt/dot11decrypt_debug.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/epan/crypt/dot11decrypt_debug.h b/epan/crypt/dot11decrypt_debug.h
new file mode 100644
index 00000000..42c55568
--- /dev/null
+++ b/epan/crypt/dot11decrypt_debug.h
@@ -0,0 +1,31 @@
+/** @file
+ *
+ * Copyright (c) 2006 CACE Technologies, Davis (California)
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0-only)
+ */
+
+#ifndef _DOT11DECRYPT_DEBUG_H
+#define _DOT11DECRYPT_DEBUG_H
+
+#define WS_LOG_DOMAIN "dot11decrypt"
+
+#include <wsutil/wslog.h>
+
+/******************************************************************************/
+/* Debug section: internal function to print debug information */
+/* */
+#ifdef WS_DEBUG
+
+#define DEBUG_DUMP(name, ptr, size, level) \
+ ws_log_buffer_full(WS_LOG_DOMAIN, level, __FILE__, __LINE__, G_STRFUNC, ptr, size, 72, name);
+
+#else /* defined WS_DEBUG */
+
+#define DEBUG_DUMP(name, ptr, size, level)
+
+#endif /* ?defined WS_DEBUG */
+
+
+#endif /* ?defined _DOT11DECRYPT_DEBUG_H */