summaryrefslogtreecommitdiff
path: root/report.c
diff options
context:
space:
mode:
authorRobert Swiecki <robert@swiecki.net>2017-10-11 17:26:51 +0200
committerRobert Swiecki <robert@swiecki.net>2017-10-11 17:26:51 +0200
commit4e595fb320d85cc29abe1cf38bea8eb04bfd301d (patch)
tree1a003e03ab3562041aceda1fce058c877eef3531 /report.c
parentcda2bab0375e3e0b84e5a3354e5157be879990d1 (diff)
downloadhonggfuzz-4e595fb320d85cc29abe1cf38bea8eb04bfd301d.tar.gz
Makefile: indent everything with clang-format
Diffstat (limited to 'report.c')
-rw-r--r--report.c54
1 files changed, 28 insertions, 26 deletions
diff --git a/report.c b/report.c
index b879e117..13ac1549 100644
--- a/report.c
+++ b/report.c
@@ -36,7 +36,7 @@
static int reportFD = -1;
#if defined(_HF_ARCH_LINUX)
-static void report_printdynFileMethod(honggfuzz_t * hfuzz)
+static void report_printdynFileMethod(honggfuzz_t* hfuzz)
{
dprintf(reportFD, " dynFileMethod: ");
if (hfuzz->dynFileMethod == 0)
@@ -56,7 +56,7 @@ static void report_printdynFileMethod(honggfuzz_t * hfuzz)
}
#endif
-static void report_printTargetCmd(honggfuzz_t * hfuzz)
+static void report_printTargetCmd(honggfuzz_t* hfuzz)
{
dprintf(reportFD, " fuzzTarget : ");
for (int x = 0; hfuzz->cmdline[x]; x++) {
@@ -65,7 +65,7 @@ static void report_printTargetCmd(honggfuzz_t * hfuzz)
dprintf(reportFD, "\n");
}
-void report_Report(honggfuzz_t * hfuzz, char *s)
+void report_Report(honggfuzz_t* hfuzz, char* s)
{
if (s == NULL || s[0] == '\0') {
return;
@@ -91,28 +91,28 @@ void report_Report(honggfuzz_t * hfuzz, char *s)
util_getLocalTime("%F.%H:%M:%S", localtmstr, sizeof(localtmstr), time(NULL));
dprintf(reportFD,
- "=====================================================================\n"
- "TIME: %s\n"
- "=====================================================================\n"
- "FUZZER ARGS:\n"
- " flipRate : %lf\n"
- " externalCmd : %s\n"
- " fuzzStdin : %s\n"
- " timeout : %ld (sec)\n"
- " ignoreAddr : %p\n"
- " memoryLimit : %" PRIu64 " (MiB)\n"
- " targetPid : %d\n"
- " targetCmd : %s\n"
- " wordlistFile : %s\n",
- localtmstr,
- hfuzz->origFlipRate,
- hfuzz->externalCommand == NULL ? "NULL" : hfuzz->externalCommand,
- hfuzz->fuzzStdin ? "TRUE" : "FALSE",
- hfuzz->tmOut,
- hfuzz->linux.ignoreAddr,
- hfuzz->asLimit,
- hfuzz->linux.pid,
- hfuzz->linux.pidCmd, hfuzz->dictionaryFile == NULL ? "NULL" : hfuzz->dictionaryFile);
+ "=====================================================================\n"
+ "TIME: %s\n"
+ "=====================================================================\n"
+ "FUZZER ARGS:\n"
+ " flipRate : %lf\n"
+ " externalCmd : %s\n"
+ " fuzzStdin : %s\n"
+ " timeout : %ld (sec)\n"
+ " ignoreAddr : %p\n"
+ " memoryLimit : %" PRIu64 " (MiB)\n"
+ " targetPid : %d\n"
+ " targetCmd : %s\n"
+ " wordlistFile : %s\n",
+ localtmstr,
+ hfuzz->origFlipRate,
+ hfuzz->externalCommand == NULL ? "NULL" : hfuzz->externalCommand,
+ hfuzz->fuzzStdin ? "TRUE" : "FALSE",
+ hfuzz->tmOut,
+ hfuzz->linux.ignoreAddr,
+ hfuzz->asLimit,
+ hfuzz->linux.pid,
+ hfuzz->linux.pidCmd, hfuzz->dictionaryFile == NULL ? "NULL" : hfuzz->dictionaryFile);
#if defined(_HF_ARCH_LINUX)
report_printdynFileMethod(hfuzz);
@@ -121,5 +121,7 @@ void report_Report(honggfuzz_t * hfuzz, char *s)
report_printTargetCmd(hfuzz);
dprintf(reportFD,
- "%s" "=====================================================================\n", s);
+ "%s"
+ "=====================================================================\n",
+ s);
}