crc/test: fix alignment
[fio.git] / crc / test.c
index 95f1c2e7f5807d0c79515ad188619f3fa4d9c7cc..63963d0f0b8aed80570948041c7e66bb624b6c12 100644 (file)
@@ -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;
        }