about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-07-16 09:39:40 +0200
committervanhauser-thc <vh@thc.org>2021-07-16 09:39:40 +0200
commitb13b8c7e55836292330ad661e9a0386f7e0d3a91 (patch)
tree97adffafb90ffd13c3b5a990629b63a4a1002437 /src
parent212fe5b6f564f76bc9f3cf9744e6ff3795d4ca37 (diff)
downloadafl++-b13b8c7e55836292330ad661e9a0386f7e0d3a91.tar.gz
make afl-showmap more silent
Diffstat (limited to 'src')
-rw-r--r--src/afl-showmap.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/afl-showmap.c b/src/afl-showmap.c
index 480de143..5c899e69 100644
--- a/src/afl-showmap.c
+++ b/src/afl-showmap.c
@@ -401,14 +401,23 @@ static u32 read_file(u8 *in_file) {
 
   if (fstat(fd, &st) || !st.st_size) {
 
-    WARNF("Zero-sized input file '%s'.", in_file);
+    if (!be_quiet && !quiet_mode) {
+
+      WARNF("Zero-sized input file '%s'.", in_file);
+
+    }
 
   }
 
   if (st.st_size > MAX_FILE) {
 
-    WARNF("Input file '%s' is too large, only reading %u bytes.", in_file,
-          MAX_FILE);
+    if (!be_quiet && !quiet_mode) {
+
+      WARNF("Input file '%s' is too large, only reading %u bytes.", in_file,
+            MAX_FILE);
+
+    }
+
     in_len = MAX_FILE;
 
   } else {
@@ -748,7 +757,7 @@ u32 execute_testcases(u8 *dir) {
 
     }
 
-    if (st.st_size > MAX_FILE && !be_quiet) {
+    if (st.st_size > MAX_FILE && !be_quiet && !quiet_mode) {
 
       WARNF("Test case '%s' is too big (%s, limit is %s), partial reading", fn2,
             stringify_mem_size(val_buf[0], sizeof(val_buf[0]), st.st_size),