There are likely more places where the wrong size types are used, but
these tripped Clang's warnings because they eventually get passed to
printf.
Signed-off-by: Adam Buchbinder <abuchbinder@google.com>
Signed-off-by: David Sterba <dsterba@suse.com>
void print_chunk(struct extent_buffer *eb, struct btrfs_chunk *chunk)
{
- int num_stripes = btrfs_chunk_num_stripes(eb, chunk);
+ u16 num_stripes = btrfs_chunk_num_stripes(eb, chunk);
int i;
u32 chunk_item_size = btrfs_chunk_item_size(num_stripes);
char chunk_flags_str[32] = {0};
int slot,
struct btrfs_file_extent_item *fi)
{
- int extent_type = btrfs_file_extent_type(eb, fi);
+ unsigned char extent_type = btrfs_file_extent_type(eb, fi);
char compress_str[16];
compress_type_to_str(btrfs_file_extent_compression(eb, fi),