diff fuzz/fuzz-harness.c @ 1904:be236878efcf

Add -v variable debug levels for server too -vvvv is equivalent to the old -v
author Matt Johnston <matt@ucc.asn.au>
date Thu, 24 Mar 2022 14:44:13 +0800
parents fd00aeff38fd
children
line wrap: on
line diff
--- a/fuzz/fuzz-harness.c	Thu Mar 24 14:18:45 2022 +0800
+++ b/fuzz/fuzz-harness.c	Thu Mar 24 14:44:13 2022 +0800
@@ -12,8 +12,8 @@
     for (i = 1; i < argc; i++) {
 #if DEBUG_TRACE
         if (strcmp(argv[i], "-v") == 0) {
-            debug_trace = 1;
-            TRACE(("debug printing on"))
+            debug_trace++;
+            fprintf(stderr, "debug level -> %d\n", debug_trace);
         }
 #endif
         if (strcmp(argv[i], "-q") == 0) {