changeset 1494:da095983a60b

Move DEBUG_TRACE to default_options
author Matt Johnston <matt@ucc.asn.au>
date Wed, 14 Feb 2018 00:24:44 +0800
parents 72fd994fe7bd
children 0c16b4ccbd54
files debug.h default_options.h.in
diffstat 2 files changed, 4 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/debug.h	Wed Feb 14 00:24:32 2018 +0800
+++ b/debug.h	Wed Feb 14 00:24:44 2018 +0800
@@ -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 */
--- a/default_options.h.in	Wed Feb 14 00:24:32 2018 +0800
+++ b/default_options.h.in	Wed Feb 14 00:24:44 2018 +0800
@@ -314,4 +314,8 @@
 /* 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_ */