summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2021-03-04 23:57:12 +0800
committerMatt Johnston <matt@ucc.asn.au>2021-03-04 23:57:12 +0800
commitf193e95a3ecd9e1c9ecf4b594517f3326e40f5e5 (patch)
tree3545b8f8da067b18bf86ef18d77108af9aae8ad8
parent03481aba068e534063f58ffaa4e8c2c060fa6e14 (diff)
fuzz: avoid extraneous printing
-rw-r--r--fuzz/fuzz-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fuzz/fuzz-common.c b/fuzz/fuzz-common.c
index 887308a..9cc6d75 100644
--- a/fuzz/fuzz-common.c
+++ b/fuzz/fuzz-common.c
@@ -354,8 +354,8 @@ const void* fuzz_get_algo(const algo_type *algos, const char* name) {
}
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);
}
}