From f0565e623154f63830ab06cc633018259d8be990 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 14 Oct 2017 18:25:35 +0200 Subject: executor: write debug output to stderr We print all other output to stderr, write debug output to stderr as well. This does not matter for the main use case of running syz-execprog -debug, but can is helpful if we want to communicate with syz-executor via stdin/stdout. --- pkg/csource/common.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/csource') diff --git a/pkg/csource/common.go b/pkg/csource/common.go index 965aaa655..f11b5360c 100644 --- a/pkg/csource/common.go +++ b/pkg/csource/common.go @@ -226,9 +226,9 @@ static void debug(const char* msg, ...) return; va_list args; va_start(args, msg); - vfprintf(stdout, msg, args); + vfprintf(stderr, msg, args); va_end(args); - fflush(stdout); + fflush(stderr); } #endif -- cgit mrf-deployment