summaryrefslogtreecommitdiff
path: root/source3/include/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'source3/include/debug.h')
-rw-r--r--source3/include/debug.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/include/debug.h b/source3/include/debug.h
index 2c910dac39..1e7e51433d 100644
--- a/source3/include/debug.h
+++ b/source3/include/debug.h
@@ -27,6 +27,15 @@
* Debugging code. See also debug.c
*/
+/* the maximum debug level to compile into the code. This assumes a good
+ optimising compiler that can remove unused code
+ for embedded or low-memory systems set this to a value like 2 to get
+ only important messages. This gives *much* smaller binaries
+*/
+#ifndef MAX_DEBUG_LEVEL
+#define MAX_DEBUG_LEVEL 1000
+#endif
+
/* mkproto.awk has trouble with ifdef'd function definitions (it ignores
* the #ifdef directive and will read both definitions, thus creating two
* diffferent prototype declarations), so we must do these by hand.