From 45ecc3d44746531ab6792442dc0b2a71f5a712f0 Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Fri, 13 Mar 2015 22:46:25 -0700 Subject: futility: send debug messages to stdout, not stderr It's more useful to see the debug messages interleaved with the regular output instead of going to a separate stream. BUG=none BRANCH=none TEST=make runtests Try: futility --debug show tests/futility/data/bios_zgb_mp.bin | less Change-Id: I43526821fc93b2af4d6d01b3bc2465e5b9672e26 Signed-off-by: Bill Richardson Reviewed-on: https://chromium-review.googlesource.com/262717 Reviewed-by: Randall Spangler --- futility/misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'futility') diff --git a/futility/misc.c b/futility/misc.c index c01cb97b..c002a134 100644 --- a/futility/misc.c +++ b/futility/misc.c @@ -36,8 +36,8 @@ void Debug(const char *format, ...) va_list ap; va_start(ap, format); - fprintf(stderr, "DEBUG: "); - vfprintf(stderr, format, ap); + fprintf(stdout, "DEBUG: "); + vfprintf(stdout, format, ap); va_end(ap); } -- cgit v1.2.1