This is an automated email from the git hooks/post-receive script.
andyp pushed a commit to branch main in repository gfs2-utils.
commit 678998ec054742dfb953ac4d77f229e4e9a5916a Author: Andrew Price anprice@redhat.com AuthorDate: Thu Jan 6 10:14:20 2022 +0000
gfs2_grow: Use PRIu64 instead of casting uint64_t to unsigned long long
Signed-off-by: Andrew Price anprice@redhat.com --- gfs2/mkfs/main_grow.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/gfs2/mkfs/main_grow.c b/gfs2/mkfs/main_grow.c index 0f8e7d9e..9690021b 100644 --- a/gfs2/mkfs/main_grow.c +++ b/gfs2/mkfs/main_grow.c @@ -324,15 +324,12 @@ trunc: */ static void print_info(struct gfs2_sbd *sdp, char *device, char *mnt_path) { - log_notice("FS: %-25s%s\n", _("Mount point:"), mnt_path); - log_notice("FS: %-25s%s\n", _("Device:"), device); - log_notice("FS: %-25s%llu (0x%llx)\n", _("Size:"), - (unsigned long long)fssize, (unsigned long long)fssize); - log_notice("DEV: %-24s%llu (0x%llx)\n", _("Length:"), - (unsigned long long)sdp->device.length, - (unsigned long long)sdp->device.length); - log_notice(_("The file system will grow by %lluMB.\n"), - (unsigned long long)(fsgrowth * sdp->sd_bsize) / MB); + log_notice(_("Mount point: %s\n"), mnt_path); + log_notice(_("Device: %s\n"), device); + log_notice(_("Size: %"PRIu64" blocks\n"), fssize); + log_notice(_("Length: %"PRIu64" blocks\n"), sdp->device.length); + log_notice(_("The file system will grow by %"PRIu64"MB.\n"), + (fsgrowth * sdp->sd_bsize) / MB); }
static int open_rindex(char *metafs_path, int mode)