If writing to stdout, move stat output to stderr
authorJens Axboe <jens.axboe@oracle.com>
Tue, 17 Apr 2007 11:27:32 +0000 (13:27 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 17 Apr 2007 11:27:32 +0000 (13:27 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
filesetup.c

index f0c42e896de1afc336888f949045b8b493087c61..6ccd357ec4f5d0b9dde6cb92d2691139eeb2aa34 100644 (file)
@@ -209,6 +209,12 @@ int generic_open_file(struct thread_data *td, struct fio_file *f)
                        return 1;
                }
                is_std = 1;
                        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)
        }
 
        if (td->o.odirect)