# HG changeset patch # User Matt Johnston # Date 1518539084 -28800 # Node ID da095983a60b7ac4825e9ffea45f2347b02adce1 # Parent 72fd994fe7bd4531ecccf13d6ff9384d3c7a97b3 Move DEBUG_TRACE to default_options diff -r 72fd994fe7bd -r da095983a60b debug.h --- 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 */ diff -r 72fd994fe7bd -r da095983a60b default_options.h.in --- 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_ */