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. --- executor/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'executor/common.h') diff --git a/executor/common.h b/executor/common.h index a283f7fbe..6cb7635f0 100644 --- a/executor/common.h +++ b/executor/common.h @@ -108,9 +108,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