about summary refs log tree commit diff
path: root/src/afl-fuzz-stats.c
diff options
context:
space:
mode:
authorDavid CARLIER <devnexen@gmail.com>2020-04-12 13:20:10 +0100
committerGitHub <noreply@github.com>2020-04-12 14:20:10 +0200
commitee4e1936d0d1ca18147d1916e9365578627584e2 (patch)
tree0bba890eceed13ee58c90b110999396ae16ae958 /src/afl-fuzz-stats.c
parentec677808549c19d22431539ff9a13498c907b4c9 (diff)
downloadafl++-ee4e1936d0d1ca18147d1916e9365578627584e2.tar.gz
build on arm64 fix. tested on Android. (#313)
Diffstat (limited to 'src/afl-fuzz-stats.c')
-rw-r--r--src/afl-fuzz-stats.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/afl-fuzz-stats.c b/src/afl-fuzz-stats.c
index 2e680dbb..0df950dd 100644
--- a/src/afl-fuzz-stats.c
+++ b/src/afl-fuzz-stats.c
@@ -70,13 +70,13 @@ void write_stats_file(afl_state_t *afl, double bitmap_cvg, double stability,
 
   fprintf(
       f,
-      "start_time        : %llu\n"
-      "last_update       : %llu\n"
-      "run_time          : %llu\n"
+      "start_time        : %" PRIu64 "\n"
+      "last_update       : %lld\n"
+      "run_time          : %lld\n"
       "fuzzer_pid        : %d\n"
-      "cycles_done       : %llu\n"
-      "cycles_wo_finds   : %llu\n"
-      "execs_done        : %llu\n"
+      "cycles_done       : %" PRIu64 "\n"
+      "cycles_wo_finds   : %" PRIu64 "\n"
+      "execs_done        : %" PRIu64 "\n"
       "execs_per_sec     : %0.02f\n"
       //          "real_execs_per_sec: %0.02f\n"  // damn the name is too long
       "paths_total       : %u\n"
@@ -90,12 +90,12 @@ void write_stats_file(afl_state_t *afl, double bitmap_cvg, double stability,
       "variable_paths    : %u\n"
       "stability         : %0.02f%%\n"
       "bitmap_cvg        : %0.02f%%\n"
-      "unique_crashes    : %llu\n"
-      "unique_hangs      : %llu\n"
-      "last_path         : %llu\n"
-      "last_crash        : %llu\n"
-      "last_hang         : %llu\n"
-      "execs_since_crash : %llu\n"
+      "unique_crashes    : %" PRIu64 "\n"
+      "unique_hangs      : %" PRIu64 "\n"
+      "last_path         : %" PRIu64 "\n"
+      "last_crash        : %" PRIu64 "\n"
+      "last_hang         : %" PRIu64 "\n"
+      "execs_since_crash : %" PRIu64 "\n"
       "exec_timeout      : %u\n"
       "slowest_exec_ms   : %u\n"
       "peak_rss_mb       : %lu\n"
@@ -171,7 +171,7 @@ void maybe_update_plot_file(afl_state_t *afl, double bitmap_cvg, double eps) {
      execs_per_sec */
 
   fprintf(afl->fsrv.plot_file,
-          "%llu, %llu, %u, %u, %u, %u, %0.02f%%, %llu, %llu, %u, %0.02f\n",
+          "%" PRIu64 ", %" PRIu64 ", %u, %u, %u, %u, %0.02f%%, %" PRIu64 ", %" PRIu64 ", %u, %0.02f\n",
           get_cur_time() / 1000, afl->queue_cycle - 1, afl->current_entry,
           afl->queued_paths, afl->pending_not_fuzzed, afl->pending_favored,
           bitmap_cvg, afl->unique_crashes, afl->unique_hangs, afl->max_depth,