--- dropbear-git/common-session.c
+++ dropbear-patch/common-session.c
@@ -47,11 +47,11 @@
 void common_session_init(int sock_in, int sock_out) {
 	time_t now;
 
-#if DEBUG_TRACE
+#if ((DEBUG_TRACE) || (DEBUG_LEVELS))
 	debug_start_net();
 #endif
 
-	TRACE(("enter session_init"))
+	TRACELEVEL1((1,"enter session_init"))
 
 	ses.sock_in = sock_in;
 	ses.sock_out = sock_out;
@@ -279,7 +279,7 @@
 /* clean up a session on exit */
 void session_cleanup() {
 	
-	TRACE(("enter session_cleanup"))
+	TRACELEVEL1((1,"enter session_cleanup"))
 	
 	/* we can't cleanup if we don't know the session state */
 	if (!ses.init_done) {
@@ -387,7 +387,7 @@
 		dropbear_exit("Incompatible remote version '%s'", ses.remoteident);
 	}
 
-	TRACE(("remoteident: %s", ses.remoteident))
+	TRACELEVEL1((1,"remoteident: %s", ses.remoteident))
 
 }
 
