t/verify-state: fix type for printf
authorJens Axboe <axboe@fb.com>
Wed, 13 Jan 2016 20:17:00 +0000 (13:17 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 13 Jan 2016 20:17:00 +0000 (13:17 -0700)
Signed-off-by: Jens Axboe <axboe@fb.com>
t/verify-state.c

index cb5ef31d8c36e199933fc586d94873f831b32c61..417777aed4572dcbda79dedff51588a6f4221805 100644 (file)
@@ -20,10 +20,10 @@ static void show_s(struct thread_io_list *s, unsigned int no_s)
        int i;
 
        printf("Thread %u, %s\n", no_s, s->name);
-       printf("Completions: %lu\n", s->no_comps);
-       printf("Depth: %lu\n", s->depth);
-       printf("Number IOs: %lu\n", s->numberio);
-       printf("Index: %lu\n", s->index);
+       printf("Completions: %llu\n", (unsigned long long) s->no_comps);
+       printf("Depth: %llu\n", (unsigned long long) s->depth);
+       printf("Number IOs: %llu\n", (unsigned long long) s->numberio);
+       printf("Index: %llu\n", (unsigned long long) s->index);
 
        printf("Completions:\n");
        for (i = 0; i < s->no_comps; i++)