If writing to stdout, move stat output to stderr
[fio.git] / 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)