diff common-kex.c @ 907:4a74c58e11fc

Make some debug info conditional
author Matt Johnston <matt@ucc.asn.au>
date Mon, 24 Feb 2014 20:53:32 +0800
parents cbc73a5aefb0
children 7cd89d4e0335
line wrap: on
line diff
--- a/common-kex.c	Sat Feb 22 18:02:09 2014 +0800
+++ b/common-kex.c	Mon Feb 24 20:53:32 2014 +0800
@@ -789,9 +789,11 @@
 	hash_desc->done(&hs, buf_getwriteptr(ses.hash, hash_desc->hashsize));
 	buf_setlen(ses.hash, hash_desc->hashsize);
 
-#ifdef DEBUG_KEXHASH
-	printhex("kexhashbuf", ses.kexhashbuf->data, ses.kexhashbuf->len);
-	printhex("kexhash", ses.hash->data, ses.hash->len);
+#if defined(DEBUG_KEXHASH) && defined(DEBUG_TRACE)
+	if (!debug_trace) {
+		printhex("kexhashbuf", ses.kexhashbuf->data, ses.kexhashbuf->len);
+		printhex("kexhash", ses.hash->data, ses.hash->len);
+	}
 #endif
 
 	buf_burn(ses.kexhashbuf);