aboutsummaryrefslogtreecommitdiff
path: root/frida_mode/src/stats/stats.c
diff options
context:
space:
mode:
authorYour Name <you@example.com>2021-12-20 18:14:57 +0000
committerYour Name <you@example.com>2021-12-20 18:14:57 +0000
commitd59a76261db02141dae06bf804fd0f84679f0d34 (patch)
treeabe5e84e618ba5ae0a926bdd9e3a37cf2c4af4c7 /frida_mode/src/stats/stats.c
parentdb19116ce692a7a317ee3e0f4a553f754465eb47 (diff)
downloadafl++-d59a76261db02141dae06bf804fd0f84679f0d34.tar.gz
Improvements to debug output
Diffstat (limited to 'frida_mode/src/stats/stats.c')
-rw-r--r--frida_mode/src/stats/stats.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/frida_mode/src/stats/stats.c b/frida_mode/src/stats/stats.c
index 83ecf89a..39aca0db 100644
--- a/frida_mode/src/stats/stats.c
+++ b/frida_mode/src/stats/stats.c
@@ -329,8 +329,11 @@ void stats_config(void) {
void stats_init(void) {
- FOKF("Stats - file [%s]", stats_filename);
- FOKF("Stats - interval [%" G_GINT64_MODIFIER "u]", stats_interval);
+ FOKF(cBLU "Stats" cRST " - " cGRN "file:" cYEL " [%s]",
+ stats_filename == NULL ? " " : stats_filename);
+ FOKF(cBLU "Stats" cRST " - " cGRN "interval:" cYEL " [%" G_GINT64_MODIFIER
+ "u]",
+ stats_interval);
if (getenv("AFL_FRIDA_STATS_INTERVAL") != NULL &&
getenv("AFL_FRIDA_STATS_FILE") == NULL) {
@@ -347,7 +350,8 @@ void stats_init(void) {
char *path = g_canonicalize_filename(stats_filename, g_get_current_dir());
- FOKF("Stats - path [%s]", path);
+ FOKF(cBLU "Stats" cRST " - " cGRN "path:" cYEL " [%s]",
+ path == NULL ? " " : path);
stats_fd = open(path, O_RDWR | O_CREAT | O_TRUNC,
S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);