filesetup: When terse_output is set, The 'laying out' message should not be displayed.
authorShaozhi Shawn Ye <yeshao@google.com>
Wed, 10 Sep 2008 07:04:18 +0000 (09:04 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 10 Sep 2008 07:04:18 +0000 (09:04 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
filesetup.c

index a52dae0..07c24be 100644 (file)
@@ -543,8 +543,10 @@ int setup_files(struct thread_data *td)
         */
        if (need_extend) {
                temp_stall_ts = 1;
-               log_info("%s: Laying out IO file(s) (%u file(s) / %LuMiB)\n",
-                       td->o.name, need_extend, extend_size >> 20);
+               if (!terse_output)
+                       log_info("%s: Laying out IO file(s) (%u file(s) /"
+                                " %LuMiB)\n", td->o.name, need_extend,
+                                       extend_size >> 20);
 
                for_each_file(td, f, i) {
                        unsigned long long old_len, extend_len;