summaryrefslogtreecommitdiff
path: root/honggfuzz.c
diff options
context:
space:
mode:
authorrobert.swiecki@gmail.com <robert.swiecki@gmail.com@f4334a76-505f-ddcd-06be-78435f765c3c>2015-03-04 06:33:11 +0000
committerrobert.swiecki@gmail.com <robert.swiecki@gmail.com@f4334a76-505f-ddcd-06be-78435f765c3c>2015-03-04 06:33:11 +0000
commit9344c0b22334fc6d6b0b7a6f25fbb51f2fd48ecd (patch)
tree41e4c65db3d984a877f4a46ba23bb6b87238a853 /honggfuzz.c
parent32b47a0f855fa4f6976029a98933babfd52dd677 (diff)
downloadhonggfuzz-9344c0b22334fc6d6b0b7a6f25fbb51f2fd48ecd.tar.gz
Move header to usage
Diffstat (limited to 'honggfuzz.c')
-rw-r--r--honggfuzz.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/honggfuzz.c b/honggfuzz.c
index 698f143e..0c6f0858 100644
--- a/honggfuzz.c
+++ b/honggfuzz.c
@@ -53,6 +53,7 @@ static bool checkFor_FILE_PLACEHOLDER(char **args)
static void usage(bool exit_success)
{
/* *INDENT-OFF* */
+ printf(AB PROG_NAME " version " PROG_VERSION " by " PROG_AUTHORS AC "\n");
printf("%s",
" [" AB "-f val" AC "] : input file corpus directory\n"
" (or a path to a single input file)\n"
@@ -152,7 +153,6 @@ int main(int argc, char **argv)
.dynamicFile_mutex = PTHREAD_MUTEX_INITIALIZER,
};
- printf(AB PROG_NAME " version " PROG_VERSION " by " PROG_AUTHORS AC "\n");
if (argc < 2) {
usage(true);
}
@@ -206,6 +206,7 @@ int main(int argc, char **argv)
hfuzz.dynFileMethod |= _HF_DYNFILE_UNIQUE_PC_COUNT;
break;
default:
+ LOGMSG(l_ERROR, "Unknown -D mode");
usage(EXIT_FAILURE);
break;
}