about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2019-12-31 13:19:47 +0100
committervan Hauser <vh@thc.org>2019-12-31 13:19:47 +0100
commit6dea693441c5b4f7177573383464fabfbde12a74 (patch)
tree10016d57f48f890a5888e15c6b4f32d366055a3e /src
parent3b9517ae735f6249d266a76df97f3288fefbe9c3 (diff)
downloadafl++-6dea693441c5b4f7177573383464fabfbde12a74.tar.gz
show correct python version and readme name
Diffstat (limited to 'src')
-rw-r--r--src/afl-fuzz.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c
index 0bb8b9a9..dd80202b 100644
--- a/src/afl-fuzz.c
+++ b/src/afl-fuzz.c
@@ -84,13 +84,6 @@ static u8* get_libradamsa_path(u8* own_loc) {
 
 static void usage(u8* argv0) {
 
-#ifdef USE_PYTHON
-#define PHYTON_SUPPORT \
-  "Compiled with Python 2.7 module support, see docs/python_mutators.txt\n"
-#else
-#define PHYTON_SUPPORT ""
-#endif
-
   SAYF(
       "\n%s [ options ] -- /path/to/fuzzed_app [ ... ]\n\n"
 
@@ -146,13 +139,15 @@ static void usage(u8* argv0) {
       "file\n"
       "  -C            - crash exploration mode (the peruvian rabbit thing)\n"
       "  -e ext        - File extension for the temporarily generated test "
-      "case\n\n"
+      "case\n\n",
 
-      PHYTON_SUPPORT
+      argv0, EXEC_TIMEOUT, MEM_LIMIT);
 
-      "For additional tips, please consult %s/README\n\n",
+#ifdef USE_PYTHON
+  SAYF("Compiled with Python %s module support, see docs/python_mutators.txt\n", (char*)PYTHON_VERSION);
+#endif
 
-      argv0, EXEC_TIMEOUT, MEM_LIMIT, doc_path);
+  SAYF("For additional information please consult %s/README.md\n\n", doc_path);
 
   exit(1);
 #undef PHYTON_SUPPORT