Whamcloud - gitweb
Merge branch 'maint' into next
[tools/e2fsprogs.git] / lib / blkid / getsize.c
index 9e90857..876d682 100644 (file)
@@ -186,7 +186,7 @@ blkid_loff_t blkid_get_dev_size(int fd)
 #ifdef TEST_PROGRAM
 int main(int argc, char **argv)
 {
-       blkid_loff_t bytes;
+       long long bytes;
        int     fd;
 
        if (argc < 2) {
@@ -199,7 +199,8 @@ int main(int argc, char **argv)
                perror(argv[0]);
 
        bytes = blkid_get_dev_size(fd);
-       printf("Device %s has %Ld 1k blocks.\n", argv[1], bytes >> 10);
+       printf("Device %s has %Ld 1k blocks.\n", argv[1], 
+              (unsigned long long) bytes >> 10);
 
        return 0;
 }