--- dropbear-git/sysoptions.h
+++ dropbear-patch/sysoptions.h
@@ -10,6 +10,13 @@
 #define LOCAL_IDENT "SSH-2.0-dropbear_" DROPBEAR_VERSION
 #define PROGNAME "dropbear"
 
+/* check if any debug level is set */
+#define DEBUG_LEVELS ((DEBUG_LEVEL1) || (DEBUG_LEVEL2) || (DEBUG_LEVEL3) || (DEBUG_LEVEL4))
+#if DEBUG_LEVEL4
+#undef DEBUG_TRACE
+#define DEBUG_TRACE 1
+#endif
+
 /* Spec recommends after one hour or 1 gigabyte of data. One hour
  * is a bit too verbose, so we try 8 hours */
 #ifndef KEX_REKEY_TIMEOUT
