Commit cc7c7714 authored by David Sterba's avatar David Sterba

btrfs: remove unnecessary casts in printk

Long time ago the explicit casts were necessary for u64 but we don't
need it.  Remove casts where the type matches, leaving only cases that
cast sector_t or loff_t.
Reviewed-by: default avatarJosef Bacik <josef@toxicpanda.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent c8422684
...@@ -177,8 +177,7 @@ static void print_uuid_item(struct extent_buffer *l, unsigned long offset, ...@@ -177,8 +177,7 @@ static void print_uuid_item(struct extent_buffer *l, unsigned long offset,
__le64 subvol_id; __le64 subvol_id;
read_extent_buffer(l, &subvol_id, offset, sizeof(subvol_id)); read_extent_buffer(l, &subvol_id, offset, sizeof(subvol_id));
pr_info("\t\tsubvol_id %llu\n", pr_info("\t\tsubvol_id %llu\n", le64_to_cpu(subvol_id));
(unsigned long long)le64_to_cpu(subvol_id));
item_size -= sizeof(u64); item_size -= sizeof(u64);
offset += sizeof(u64); offset += sizeof(u64);
} }
......
...@@ -799,8 +799,7 @@ int btrfs_ref_tree_mod(struct btrfs_fs_info *fs_info, ...@@ -799,8 +799,7 @@ int btrfs_ref_tree_mod(struct btrfs_fs_info *fs_info,
if (!be) { if (!be) {
btrfs_err(fs_info, btrfs_err(fs_info,
"trying to do action %d to bytenr %llu num_bytes %llu but there is no existing entry!", "trying to do action %d to bytenr %llu num_bytes %llu but there is no existing entry!",
action, (unsigned long long)bytenr, action, bytenr, num_bytes);
(unsigned long long)num_bytes);
dump_ref_action(fs_info, ra); dump_ref_action(fs_info, ra);
kfree(ref); kfree(ref);
kfree(ra); kfree(ra);
......
...@@ -129,8 +129,7 @@ int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, u8 *uuid, u8 type, ...@@ -129,8 +129,7 @@ int btrfs_uuid_tree_add(struct btrfs_trans_handle *trans, u8 *uuid, u8 type,
} else { } else {
btrfs_warn(fs_info, btrfs_warn(fs_info,
"insert uuid item failed %d (0x%016llx, 0x%016llx) type %u!", "insert uuid item failed %d (0x%016llx, 0x%016llx) type %u!",
ret, (unsigned long long)key.objectid, ret, key.objectid, key.offset, type);
(unsigned long long)key.offset, type);
goto out; goto out;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment