summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2018-02-14 00:24:44 +0800
committerMatt Johnston <matt@ucc.asn.au>2018-02-14 00:24:44 +0800
commit1742b41201b83713bd76ded505cbae925cfda5dc (patch)
tree57c1766694201854d40a49d534e0724ad950b6c0
parent16aedefc7d50d22bdd19a5ce43b6f0a099f4af6b (diff)
downloaddropbear-1742b41201b83713bd76ded505cbae925cfda5dc.tar.gz
Move DEBUG_TRACE to default_options
-rw-r--r--debug.h10
-rw-r--r--default_options.h.in4
2 files changed, 4 insertions, 10 deletions
diff --git a/debug.h b/debug.h
index 93fbc1f..c2efda7 100644
--- a/debug.h
+++ b/debug.h
@@ -33,16 +33,6 @@
* etc. Don't use this normally, it might cause problems */
/* #define DEBUG_VALGRIND */
-/* Define this to compile in trace debugging printf()s.
- * You'll need to run programs with "-v" to turn this on.
- *
- * Caution: Don't use this in an unfriendly environment (ie unfirewalled),
- * since the printing may not sanitise strings etc. This will add a reasonable
- * amount to your executable size. */
-#ifndef DEBUG_TRACE
-#define DEBUG_TRACE 0
-#endif
-
/* All functions writing to the cleartext payload buffer call
* CHECKCLEARTOWRITE() before writing. This is only really useful if you're
* attempting to track down a problem */
diff --git a/default_options.h.in b/default_options.h.in
index b0641e4..95097ac 100644
--- a/default_options.h.in
+++ b/default_options.h.in
@@ -314,4 +314,8 @@ be overridden at runtime with -I. 0 disables idle timeouts */
/* The default path. This will often get replaced by the shell */
#define DEFAULT_PATH "/usr/bin:/bin"
+/* Include verbose debug output, enabled with -v at runtime.
+ * This will add a reasonable amount to your executable size. */
+#define DEBUG_TRACE 0
+
#endif /* DROPBEAR_DEFAULT_OPTIONS_H_ */