From 75a451240e0ae5ab1debbdb610ba3c49caa8002b Mon Sep 17 00:00:00 2001 From: David Sterba Date: Mon, 23 Oct 2023 22:34:33 +0200 Subject: [PATCH] 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 --- common/parse-utils.c | 8 ++------ common/send-utils.c | 6 ++---- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/common/parse-utils.c b/common/parse-utils.c index e00a1f67..74542a79 100644 --- a/common/parse-utils.c +++ b/common/parse-utils.c @@ -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; diff --git a/common/send-utils.c b/common/send-utils.c index 0603a650..54fb782b 100644 --- a/common/send-utils.c +++ b/common/send-utils.c @@ -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;