Convert left-over manual ->runstate setting to td_set_runstate()
authorJens Axboe <jaxboe@fusionio.com>
Mon, 2 May 2011 19:14:26 +0000 (13:14 -0600)
committerJens Axboe <jaxboe@fusionio.com>
Mon, 2 May 2011 19:14:26 +0000 (13:14 -0600)
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
fio.h

diff --git a/fio.h b/fio.h
index 4b6fb9fdd209f61147b964ca46046b431d74a9fc..6ad186f0e6a87cc4ff5ec20dda35c598df0aaf8c 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -666,7 +666,7 @@ extern int load_blktrace(struct thread_data *, const char *);
        if (!(cond)) {                  \
                int *__foo = NULL;      \
                fprintf(stderr, "file:%s:%d, assert %s failed\n", __FILE__, __LINE__, #cond);   \
-               (td)->runstate = TD_EXITED;     \
+               td_set_runstate((td), TD_EXITED);       \
                (td)->error = EFAULT;           \
                *__foo = 0;                     \
        }       \