From: Andreas Gruenbacher <andreas.gruenbacher@gmail.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH 1/2] gfs2: Fix printf format errors on x86
Date: Fri, 11 Sep 2015 00:05:41 +0200 [thread overview]
Message-ID: <1441922742-9212-1-git-send-email-andreas.gruenbacher@gmail.com> (raw)
In-Reply-To: <CAHc6FU6rne1uDXDF-sEmoCLVYF3=zroFXK37DQm7=D1sOxGGVQ@mail.gmail.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
---
gfs2/fsck/metawalk.c | 2 +-
gfs2/mkfs/main_grow.c | 5 +++--
gfs2/mkfs/main_mkfs.c | 2 +-
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/gfs2/fsck/metawalk.c b/gfs2/fsck/metawalk.c
index 333bec6..9923d94 100644
--- a/gfs2/fsck/metawalk.c
+++ b/gfs2/fsck/metawalk.c
@@ -2080,7 +2080,7 @@ int write_new_leaf(struct gfs2_inode *dip, int start_lindex, int num_copies,
"(0x%llx) at index: 0x%x for 0x%lx pointers.\n"),
(unsigned long long)dip->i_di.di_num.no_addr,
(unsigned long long)dip->i_di.di_num.no_addr,
- start_lindex, pad_size / sizeof(uint64_t));
+ start_lindex, (unsigned long)pad_size / sizeof(uint64_t));
if (dip->i_sbd->gfs1)
count = gfs1_writei(dip, padbuf, start_lindex *
sizeof(uint64_t), pad_size);
diff --git a/gfs2/mkfs/main_grow.c b/gfs2/mkfs/main_grow.c
index 4757ac7..860c319 100644
--- a/gfs2/mkfs/main_grow.c
+++ b/gfs2/mkfs/main_grow.c
@@ -269,7 +269,8 @@ static void fix_rindex(int rindex_fd, lgfs2_rgrps_t rgs, unsigned old_rg_count,
off_t rindex_size = lseek(rindex_fd, 0, SEEK_END);
if (rindex_size != old_rg_count * entrysize) {
log_crit(_("Incorrect rindex size. Want %ld (%d resource groups), have %ld\n"),
- (old_rg_count * entrysize), old_rg_count, rindex_size);
+ (long)(old_rg_count * entrysize), old_rg_count,
+ (long)rindex_size);
goto out;
}
/* Write the first entry separately to ensure there's enough
@@ -300,7 +301,7 @@ out:
trunc:
count = (count / sizeof(struct gfs2_rindex)) + old_rg_count;
log_crit(_("truncating rindex to %ld entries\n"),
- (off_t)count * sizeof(struct gfs2_rindex));
+ (long)count * sizeof(struct gfs2_rindex));
ftruncate(rindex_fd, (off_t)count * sizeof(struct gfs2_rindex));
free(buf);
}
diff --git a/gfs2/mkfs/main_mkfs.c b/gfs2/mkfs/main_mkfs.c
index 3fab08c..d3d8edf 100644
--- a/gfs2/mkfs/main_mkfs.c
+++ b/gfs2/mkfs/main_mkfs.c
@@ -599,7 +599,7 @@ static lgfs2_rgrps_t rgs_init(struct mkfs_opts *opts, struct gfs2_sbd *sdp)
if (opts->debug) {
printf(" rgrp align = ");
if (opts->align)
- printf("%lu+%lu blocks\n", al_base, al_off);
+ printf("%"PRIu64"+%"PRIu64" blocks\n", al_base, al_off);
else
printf("(disabled)\n");
}
--
2.4.3
next prev parent reply other threads:[~2015-09-10 22:05 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-09 15:55 [Cluster-devel] [PATCH 1/2] libgfs2: Add support for dirent.de_rahead Andreas Gruenbacher
2015-09-09 15:55 ` [Cluster-devel] [PATCH 2/2] gfs2_edit: Include dirent.de_rahead in directory listings Andreas Gruenbacher
2015-09-09 16:27 ` Andrew Price
2015-09-10 11:07 ` Andrew Price
2015-09-10 12:51 ` Andreas Grünbacher
2015-09-10 22:04 ` Andreas Gruenbacher
2015-09-10 22:05 ` Andreas Gruenbacher [this message]
2015-09-10 22:05 ` [Cluster-devel] [PATCH 2/2] gfs2_edit: Add attribute printf for print_gfs2 Andreas Gruenbacher
2015-09-11 10:45 ` Andrew Price
2015-09-11 10:45 ` [Cluster-devel] [PATCH 2/2] gfs2_edit: Include dirent.de_rahead in directory listings Andrew Price
2015-09-11 11:02 ` Andreas Gruenbacher
2015-09-11 11:28 ` [Cluster-devel] gfs2 on-disk headers in user space Andrew Price
2015-09-11 11:40 ` Andreas Grünbacher
2015-09-11 11:57 ` Andrew Price
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1441922742-9212-1-git-send-email-andreas.gruenbacher@gmail.com \
--to=andreas.gruenbacher@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).