about summary refs log tree commit diff
path: root/frida_mode/src/output.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/output.c
parentdb19116ce692a7a317ee3e0f4a553f754465eb47 (diff)
downloadafl++-d59a76261db02141dae06bf804fd0f84679f0d34.tar.gz
Improvements to debug output
Diffstat (limited to 'frida_mode/src/output.c')
-rw-r--r--frida_mode/src/output.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/frida_mode/src/output.c b/frida_mode/src/output.c
index f570fe91..66208992 100644
--- a/frida_mode/src/output.c
+++ b/frida_mode/src/output.c
@@ -18,7 +18,7 @@ static void output_redirect(int fd, char *filename) {
 
   path = g_canonicalize_filename(filename, g_get_current_dir());
 
-  FOKF("Redirect %d -> '%s'", fd, path);
+  FVERBOSE("Redirect %d -> '%s'", fd, path);
 
   int output_fd = open(path, O_RDWR | O_CREAT | O_TRUNC,
                        S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
@@ -46,8 +46,10 @@ void output_config(void) {
 
 void output_init(void) {
 
-  FOKF("Output - StdOut: %s", output_stdout);
-  FOKF("Output - StdErr: %s", output_stderr);
+  FOKF(cBLU "Output" cRST " - " cGRN "stdout:" cYEL " [%s]",
+       output_stdout == NULL ? " " : output_stdout);
+  FOKF(cBLU "Output" cRST " - " cGRN "stderr:" cYEL " [%s]",
+       output_stderr == NULL ? " " : output_stderr);
 
   output_redirect(STDOUT_FILENO, output_stdout);
   output_redirect(STDERR_FILENO, output_stderr);