From: Jens Axboe Date: Tue, 17 Apr 2007 11:27:32 +0000 (+0200) Subject: If writing to stdout, move stat output to stderr X-Git-Tag: fio-1.16~15 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=ce98fa663bb7c157b0db45791731d4795d6208a5;hp=8cc7afa91ddc5a0980b9d2dbfdd66e1511a0d4b1;ds=sidebyside If writing to stdout, move stat output to stderr Signed-off-by: Jens Axboe --- diff --git a/filesetup.c b/filesetup.c index f0c42e89..6ccd357e 100644 --- a/filesetup.c +++ b/filesetup.c @@ -209,6 +209,12 @@ int generic_open_file(struct thread_data *td, struct fio_file *f) return 1; } is_std = 1; + + /* + * move output logging to stderr, if we are writing to stdout + */ + if (td_write(td)) + f_out = stderr; } if (td->o.odirect)