missed printf in AbortMessage(); merged printfs in EndMessage
authorNils Schneider <nils.schneider@gmail.com>
Sat, 17 Sep 2011 19:36:58 +0000 (21:36 +0200)
committerNils Schneider <nils.schneider@gmail.com>
Sat, 17 Sep 2011 19:36:58 +0000 (21:36 +0200)
src/net.h

index a8356ea..0026e40 100644 (file)
--- a/src/net.h
+++ b/src/net.h
@@ -296,7 +296,9 @@ public:
         nHeaderStart = -1;
         nMessageStart = -1;
         cs_vSend.Leave();
-        printf("(aborted)\n");
+
+        if (fDebug)
+            printf("(aborted)\n");
     }
 
     void EndMessage()
@@ -326,8 +328,7 @@ public:
         }
 
         if (fDebug) {
-            printf("(%d bytes) ", nSize);
-            printf("\n");
+            printf("(%d bytes)\n", nSize);
         }
 
         nHeaderStart = -1;