]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blobdiff - misc/filefrag.c
Fix clang warnings on architectures with a 64-bit long
[thirdparty/e2fsprogs.git] / misc / filefrag.c
index 62d583b2ea236b33e6e531dd14e8b694f2393130..1e43131ebad54cede57356bd7e55b0e0210c33a3 100644 (file)
@@ -374,9 +374,9 @@ static int filefrag_fibmap(int fd, int blk_shift, int *num_extents,
                        if (verbose && expected != 0) {
                                printf("Discontinuity: Block %llu is at %llu "
                                       "(was %llu)\n",
-                                       fm_ext.fe_logical / st->st_blksize,
-                                       fm_ext.fe_physical / st->st_blksize,
-                                       expected / st->st_blksize);
+                                      (unsigned long long) (fm_ext.fe_logical / st->st_blksize),
+                                      (unsigned long long) (fm_ext.fe_physical / st->st_blksize),
+                                      (unsigned long long) (expected / st->st_blksize));
                        }
                        /* create the new extent */
                        fm_last = fm_ext;
@@ -492,8 +492,8 @@ static int frag_report(const char *filename)
                __u32 state;
 
                printf("File size of %s is %llu (%llu block%s of %d bytes)",
-                      filename, (unsigned long long)st.st_size,
-                      numblocks * blksize >> blk_shift,
+                      filename, (unsigned long long) st.st_size,
+                      (unsigned long long) (numblocks * blksize >> blk_shift),
                       numblocks == 1 ? "" : "s", 1 << blk_shift);
                if (use_extent_cache &&
                    ioctl(fd, EXT4_IOC_GETSTATE, &state) == 0 &&