Add missing "rand"/"trimwrite" strings to corresponding ddir slots
[fio.git] / io_ddir.h
index e5eff687d95d1b6ed91788804d14c32b5d67893f..613d5fbce2625ab5b9b41d74fcab5ffebdd2694a 100644 (file)
--- a/io_ddir.h
+++ b/io_ddir.h
@@ -16,8 +16,9 @@ enum fio_ddir {
 
 static inline const char *io_ddir_name(enum fio_ddir ddir)
 {
-       const char *name[] = { "read", "write", "trim", "sync", "datasync",
-                               "sync_file_range", "write", };
+       static const char *name[] = { "read", "write", "trim", "sync",
+                                       "datasync", "sync_file_range",
+                                       "wait", };
 
        if (ddir < DDIR_LAST)
                return name[ddir];
@@ -60,9 +61,9 @@ static inline int ddir_rw(enum fio_ddir ddir)
 
 static inline const char *ddir_str(enum td_ddir ddir)
 {
-       const char *__str[] = { NULL, "read", "write", "rw", NULL,
+       static const char *__str[] = { NULL, "read", "write", "rw", "rand",
                                "randread", "randwrite", "randrw",
-                               "trim", NULL, NULL, NULL, "randtrim" };
+                               "trim", NULL, "trimwrite", NULL, "randtrim" };
 
        return __str[ddir];
 }