summaryrefslogtreecommitdiff
path: root/report.c
diff options
context:
space:
mode:
authorAnestis Bechtsoudis <anestis@census-labs.com>2016-02-09 17:55:38 +0200
committerAnestis Bechtsoudis <anestis@census-labs.com>2016-02-09 17:55:38 +0200
commit7c88d7a58c311455f3b768d6f405016e6d800c21 (patch)
treedd9ba2128945541ae93b33649ed77aa1904d30de /report.c
parentc7c3cc7a1ec54b3d3479c65532dfce264b3c83ec (diff)
downloadhonggfuzz-7c88d7a58c311455f3b768d6f405016e6d800c21.tar.gz
LINUX: Use procfs to resolve remote pid cmd
Use remote pid cmdline string for display and reports Signed-off-by: Anestis Bechtsoudis <anestis@census-labs.com>
Diffstat (limited to 'report.c')
-rw-r--r--report.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/report.c b/report.c
index cff81bb0..e7c0fd20 100644
--- a/report.c
+++ b/report.c
@@ -102,6 +102,7 @@ void report_Report(honggfuzz_t * hfuzz, char *s)
" ignoreAddr : %p\n"
" memoryLimit : %" PRIu64 " (MiB)\n"
" targetPid : %d\n"
+ " targetCmd : %s\n"
" wordlistFile : %s\n",
localtmstr,
hfuzz->flipRate,
@@ -110,7 +111,8 @@ void report_Report(honggfuzz_t * hfuzz, char *s)
hfuzz->tmOut,
hfuzz->ignoreAddr,
hfuzz->asLimit,
- hfuzz->pid, hfuzz->dictionaryFile == NULL ? "NULL" : hfuzz->dictionaryFile);
+ hfuzz->pid, hfuzz->pidCmd,
+ hfuzz->dictionaryFile == NULL ? "NULL" : hfuzz->dictionaryFile);
#if defined(_HF_ARCH_LINUX)
report_printdynFileMethod(hfuzz);