diff options
author | Colin Cross <ccross@android.com> | 2014-01-23 13:19:27 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2014-01-29 19:47:05 -0800 |
commit | af0723439af552c170425416ee8e35f4f20bbe67 (patch) | |
tree | bbce41eca757f15e2058d53e014890f06c0c1341 /ext4_utils/make_ext4fs.c | |
parent | 9a2b60b28d866b94b86c7ceb3a9004d28e20b483 (diff) | |
download | extras-af0723439af552c170425416ee8e35f4f20bbe67.tar.gz |
ext4_utils: fix build for 64 bit
Correct u64/s64 definitions
Use PRIu64 to print u64
Change-Id: Icaf7998946b0a2faa03495b404af8b94e4e3d047
Diffstat (limited to 'ext4_utils/make_ext4fs.c')
-rw-r--r-- | ext4_utils/make_ext4fs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext4_utils/make_ext4fs.c b/ext4_utils/make_ext4fs.c index 2250241c..0cb5bae9 100644 --- a/ext4_utils/make_ext4fs.c +++ b/ext4_utils/make_ext4fs.c @@ -26,6 +26,7 @@ #include <assert.h> #include <dirent.h> #include <fcntl.h> +#include <inttypes.h> #include <libgen.h> #include <stdio.h> #include <stdlib.h> @@ -531,7 +532,7 @@ int make_ext4fs_internal(int fd, const char *_directory, info.bg_desc_reserve_blocks = compute_bg_desc_reserve_blocks(); printf("Creating filesystem with parameters:\n"); - printf(" Size: %llu\n", info.len); + printf(" Size: %"PRIu64"\n", info.len); printf(" Block size: %d\n", info.block_size); printf(" Blocks per group: %d\n", info.blocks_per_group); printf(" Inodes per group: %d\n", info.inodes_per_group); @@ -541,7 +542,7 @@ int make_ext4fs_internal(int fd, const char *_directory, ext4_create_fs_aux_info(); - printf(" Blocks: %llu\n", aux_info.len_blocks); + printf(" Blocks: %"PRIu64"\n", aux_info.len_blocks); printf(" Block groups: %d\n", aux_info.groups); printf(" Reserved block group size: %d\n", info.bg_desc_reserve_blocks); |