diff options
author | Matt Johnston <matt@ucc.asn.au> | 2018-02-14 00:24:44 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2018-02-14 00:24:44 +0800 |
commit | 9a7972dcb8fffda8084c7ade32af4436aad39e81 (patch) | |
tree | 0d27944de602715ac816c22fc013dc3cc3bff605 | |
parent | 191f22e11a0519ece1703696182c5595bc5950c3 (diff) |
Move DEBUG_TRACE to default_options
-rw-r--r-- | debug.h | 10 | ||||
-rw-r--r-- | default_options.h.in | 4 |
2 files changed, 4 insertions, 10 deletions
@@ -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_ */ |