Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
static void sig_int(int sig)
{
if (threads) {
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);
}
fflush(stdout);
terminate_threads(TERMINATE_ALL);
}
- 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)
td->verror);
if (td->o.verify_async)
return;
if (!terse_output) {
return;
if (!terse_output) {
- 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 ");
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" : "");
}
nr_process > 1 ? "es" : "");
}
* don't overwrite last signal output
*/
if (!terse_output)
* don't overwrite last signal output
*/
if (!terse_output)
for (i = 0; i < nr_ts; i++) {
ts = &threadstats[i];
for (i = 0; i < nr_ts; i++) {
ts = &threadstats[i];