Whamcloud - gitweb
debian: add support for DEB_BUILD_OPTIONS=parallel=N
[tools/e2fsprogs.git] / lib / ext2fs / tst_iscan.c
index 64246d3..76aaa9a 100644 (file)
@@ -9,6 +9,7 @@
  * %End-Header%
  */
 
+#include "config.h"
 #include <stdio.h>
 #include <string.h>
 #if HAVE_UNISTD_H
@@ -25,7 +26,7 @@
 #include "ext2_fs.h"
 #include "ext2fs.h"
 
-blk_t test_vec[] = { 8, 12, 24, 34, 43, 44, 100, 0 };
+blk64_t test_vec[] = { 8, 12, 24, 34, 43, 44, 100, 0 };
 
 ext2_filsys    test_fs;
 ext2fs_block_bitmap bad_block_map, touched_map;
@@ -181,7 +182,8 @@ static void check_map(void)
 
        for (i=0; test_vec[i]; i++) {
                if (ext2fs_test_block_bitmap2(touched_map, test_vec[i])) {
-                       printf("Bad block was touched --- %u\n", test_vec[i]);
+                       printf("Bad block was touched --- %llu\n",
+                              (unsigned long long) test_vec[i]);
                        failed++;
                        first_no_comma = 1;
                }
@@ -193,7 +195,8 @@ static void check_map(void)
                     j++, blk++) {
                        if (!ext2fs_test_block_bitmap2(touched_map, blk) &&
                            !ext2fs_test_block_bitmap2(bad_block_map, blk)) {
-                               printf("Missing block --- %llu\n", blk);
+                               printf("Missing block --- %llu\n",
+                                      (unsigned long long) blk);
                                failed++;
                        }
                }