Fixup t/ test apps for lfsr_next change()
authorJens Axboe <axboe@fb.com>
Mon, 24 Nov 2014 15:07:03 +0000 (08:07 -0700)
committerJens Axboe <axboe@fb.com>
Mon, 24 Nov 2014 15:07:03 +0000 (08:07 -0700)
Reported-by: Bruce Cran <bruce@cran.org.uk>
Signed-off-by: Jens Axboe <axboe@fb.com>
t/axmap.c
t/lfsr-test.c

index 57c585b6798ae9a3d28b17f5a49a25062590ded4..e32ff98d09f1323a12b9cb1c708cb49370ca0a38 100644 (file)
--- a/t/axmap.c
+++ b/t/axmap.c
@@ -37,7 +37,7 @@ static int test_regular(size_t size, int seed)
        while (size--) {
                uint64_t val;
 
-               if (lfsr_next(&lfsr, &val, osize)) {
+               if (lfsr_next(&lfsr, &val)) {
                        printf("lfsr: short loop\n");
                        err = 1;
                        break;
index 4b5424833ffca7ae148a6c696df3f97baaca83e5..901f1a66bfb30e2184391c1365872d1a646465af 100644 (file)
@@ -89,7 +89,7 @@ int main(int argc, char *argv[])
         */
        fprintf(stderr, "\nTest initiated... ");
        fio_gettime(&start, NULL);
-       while (!lfsr_next(fl, &i, fl->max_val)) {
+       while (!lfsr_next(fl, &i)) {
                if (verify)
                        *(uint8_t *)(v + i) += 1;
        }