changeset 1799:8df3d6aa5f23

fuzz: avoid extraneous printing
author Matt Johnston <matt@ucc.asn.au>
date Thu, 04 Mar 2021 23:57:12 +0800
parents 8dc43b30c6bf
children c584b5602bd8
files fuzz/fuzz-common.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/fuzz/fuzz-common.c	Thu Mar 04 21:03:02 2021 +0800
+++ b/fuzz/fuzz-common.c	Thu Mar 04 23:57:12 2021 +0800
@@ -354,8 +354,8 @@
 }
 
 void fuzz_dump(const unsigned char* data, size_t len) {
-    TRACE(("dump %zu", len))
     if (fuzz.dumping) {
+        TRACE(("dump %zu", len))
         assert(atomicio(vwrite, fuzz.recv_dumpfd, (void*)data, len) == len);
     }
 }