aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-10-14 18:25:35 +0200
committerDmitry Vyukov <dvyukov@google.com>2017-10-16 14:21:54 +0200
commitf0565e623154f63830ab06cc633018259d8be990 (patch)
treecb0c7276780bd7d37dcf21dadab6c5141c80d6ba /executor/common.h
parent9444f97045cd7c64517f4dbbee316c2e85925054 (diff)
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.
Diffstat (limited to 'executor/common.h')
-rw-r--r--executor/common.h4
1 files changed, 2 insertions, 2 deletions
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