mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-25 15:42:23 +00:00
btrfs-progs: common: drop unsigned long long casts for printf
The %llu specifier does not need the typecast for ULL for a long time, remove it. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
b764ba3c4a
commit
75a451240e
@ -85,9 +85,7 @@ int parse_range(const char *range, u64 *start, u64 *end)
|
||||
}
|
||||
|
||||
if (*start > *end) {
|
||||
error("range %llu..%llu doesn't make sense",
|
||||
(unsigned long long)*start,
|
||||
(unsigned long long)*end);
|
||||
error("range %llu..%llu doesn't make sense", *start, *end);
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -136,9 +134,7 @@ int parse_range_strict(const char *range, u64 *start, u64 *end)
|
||||
{
|
||||
if (parse_range(range, start, end) == 0) {
|
||||
if (*start >= *end) {
|
||||
error("range %llu..%llu not allowed",
|
||||
(unsigned long long)*start,
|
||||
(unsigned long long)*end);
|
||||
error("range %llu..%llu not allowed", *start, *end);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
@ -218,14 +218,12 @@ static int btrfs_subvolid_resolve_sub(int fd, char *path, size_t *path_len,
|
||||
if (ret < 0) {
|
||||
fprintf(stderr,
|
||||
"ioctl(BTRFS_IOC_TREE_SEARCH, subvol_id %llu) ret=%d, error: %m\n",
|
||||
(unsigned long long)subvol_id, ret);
|
||||
subvol_id, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (search_arg.key.nr_items < 1) {
|
||||
fprintf(stderr,
|
||||
"failed to lookup subvol_id %llu!\n",
|
||||
(unsigned long long)subvol_id);
|
||||
fprintf(stderr, "failed to lookup subvol_id %llu!\n", subvol_id);
|
||||
return -ENOENT;
|
||||
}
|
||||
search_header = (struct btrfs_ioctl_search_header *)search_arg.buf;
|
||||
|
Loading…
Reference in New Issue
Block a user