Correct spelling error
[fio.git] / io_u.c
diff --git a/io_u.c b/io_u.c
index 4f17decd4ca8002133f6f84d66192f506e520d92..8141991c27ca2619fe630aa903a7c4a959cb1e80 100644 (file)
--- a/io_u.c
+++ b/io_u.c
@@ -548,7 +548,7 @@ long io_u_queued_complete(struct thread_data *td, int min_events,
        if (min_events > 0) {
                ret = td_io_commit(td);
                if (ret < 0) {
-                       td_verror(td, -ret);
+                       td_verror(td, -ret, "td_io_commit");
                        return ret;
                }
        } else {
@@ -559,7 +559,7 @@ long io_u_queued_complete(struct thread_data *td, int min_events,
 
        ret = td_io_getevents(td, min_events, td->cur_depth, tvp);
        if (ret < 0) {
-               td_verror(td, -ret);
+               td_verror(td, -ret, "td_io_getevents");
                return ret;
        } else if (!ret)
                return ret;
@@ -583,6 +583,7 @@ void io_u_queued(struct thread_data *td, struct io_u *io_u)
        add_slat_sample(td, io_u->ddir, slat_time);
 }
 
+#ifdef FIO_USE_TIMEOUT
 void io_u_set_timeout(struct thread_data *td)
 {
        assert(td->cur_depth);
@@ -594,7 +595,13 @@ void io_u_set_timeout(struct thread_data *td)
        setitimer(ITIMER_REAL, &td->timer, NULL);
        fio_gettime(&td->timeout_end, NULL);
 }
+#else
+void io_u_set_timeout(struct thread_data fio_unused *td)
+{
+}
+#endif
 
+#ifdef FIO_USE_TIMEOUT
 static void io_u_timeout_handler(int fio_unused sig)
 {
        struct thread_data *td, *__td;
@@ -628,8 +635,11 @@ static void io_u_timeout_handler(int fio_unused sig)
        td->error = ETIMEDOUT;
        exit(1);
 }
+#endif
 
 void io_u_init_timeout(void)
 {
+#ifdef FIO_USE_TIMEOUT
        signal(SIGALRM, io_u_timeout_handler);
+#endif
 }