Use log_info() more consistently
authorJens Axboe <jens.axboe@oracle.com>
Wed, 24 Feb 2010 08:19:14 +0000 (09:19 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 24 Feb 2010 08:19:14 +0000 (09:19 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fio.c
stat.c

diff --git a/fio.c b/fio.c
index 728addd..778749d 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -134,7 +134,7 @@ static void sig_quit(int sig)
 static void sig_int(int sig)
 {
        if (threads) {
-               printf("\nfio: terminating on signal %d\n", sig);
+               log_info("\nfio: terminating on signal %d\n", sig);
                fflush(stdout);
                terminate_threads(TERMINATE_ALL);
        }
@@ -1210,7 +1210,7 @@ static void *thread_main(void *data)
 
 err:
        if (td->error)
-               printf("fio: pid=%d, err=%d/%s\n", (int) td->pid, td->error,
+               log_info("fio: pid=%d, err=%d/%s\n", (int) td->pid, td->error,
                                                        td->verror);
 
        if (td->o.verify_async)
@@ -1412,17 +1412,17 @@ static void run_threads(void)
                return;
 
        if (!terse_output) {
-               printf("Starting ");
+               log_info("Starting ");
                if (nr_thread)
-                       printf("%d thread%s", nr_thread,
+                       log_info("%d thread%s", nr_thread,
                                                nr_thread > 1 ? "s" : "");
                if (nr_process) {
                        if (nr_thread)
                                printf(" and ");
-                       printf("%d process%s", nr_process,
+                       log_info("%d process%s", nr_process,
                                                nr_process > 1 ? "es" : "");
                }
-               printf("\n");
+               log_info("\n");
                fflush(stdout);
        }
 
diff --git a/stat.c b/stat.c
index 6418cf1..9d1f66a 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -644,7 +644,7 @@ void show_run_stats(void)
         * don't overwrite last signal output
         */
        if (!terse_output)
-               printf("\n");
+               log_info("\n");
 
        for (i = 0; i < nr_ts; i++) {
                ts = &threadstats[i];