This is an automated email from the git hooks/post-receive script.
andyp pushed a commit to branch main in repository gfs2-utils.
commit 8873259ddef34be293c91550b2c740f3286e223d Author: Andrew Price anprice@redhat.com AuthorDate: Thu Jan 6 09:32:44 2022 +0000
mkfs.gfs2: Use PRIu64 instead of casting uint64_t to unsigned long long
Signed-off-by: Andrew Price anprice@redhat.com --- gfs2/mkfs/main_mkfs.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/gfs2/mkfs/main_mkfs.c b/gfs2/mkfs/main_mkfs.c index 47e18ba2..6f30b2d3 100644 --- a/gfs2/mkfs/main_mkfs.c +++ b/gfs2/mkfs/main_mkfs.c @@ -168,16 +168,15 @@ static struct lgfs2_inum *mkfs_journals = NULL;
static int discard_blocks(int fd, uint64_t len, int debug) { - __uint64_t range[2]; + uint64_t range[2];
range[0] = 0; range[1] = len; if (debug) /* Translators: "discard" is a request sent to a storage device to * discard a range of blocks. */ - printf(_("Issuing discard request: range: %llu - %llu..."), - (unsigned long long)range[0], - (unsigned long long)range[1]); + printf(_("Issuing discard request: range: %"PRIu64" - %"PRIu64"..."), + range[0], range[1]); if (ioctl(fd, BLKDISCARD, &range) < 0) { if (debug) printf("%s = %d\n", _("error"), errno);
cluster-commits@lists.fedorahosted.org