summaryrefslogtreecommitdiff
path: root/crc
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2014-09-27 08:43:27 -0600
committerJens Axboe <axboe@fb.com>2014-09-27 08:43:27 -0600
commitd78bbd4c3f3f58ad2a6699c416ea773faa097519 (patch)
treebc39b26c9a4d0397c1fea29e88adf8dc2b093ff1 /crc
parent9f0e365d0d08f9df142d48bd891370dc50148d5f (diff)
crc/test: fix alignment
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'crc')
-rw-r--r--crc/test.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/crc/test.c b/crc/test.c
index 95f1c2e..63963d0 100644
--- a/crc/test.c
+++ b/crc/test.c
@@ -280,6 +280,7 @@ int fio_crctest(const char *type)
struct timeval tv;
double mb_sec;
uint64_t usec;
+ char pre[3];
if (!(t[i].mask & test_mask))
continue;
@@ -299,7 +300,11 @@ int fio_crctest(const char *type)
mb_sec = (double) mb / (double) usec;
mb_sec /= (1.024 * 1.024);
- printf("%s:\t%8.2f MB/sec\n", t[i].name, mb_sec);
+ if (strlen(t[i].name) >= 7)
+ sprintf(pre, "\t");
+ else
+ sprintf(pre, "\t\t");
+ printf("%s:%s%8.2f MB/sec\n", t[i].name, pre, mb_sec);
first = 0;
}