From: Jeff Liu <jeff.liu@oracle.com>
To: xfs@oss.sgi.com
Subject: [PATCH] xfstests: fix a compile warning at seek_sanity_test.c
Date: Sat, 02 Jun 2012 22:33:06 +0800 [thread overview]
Message-ID: <4FCA2422.90804@oracle.com> (raw)
Hello,
Compiler report warning at seek_sanity_test.c:
seek_sanity_test.c:46:3: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'int'
Below patch can fix it.
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
---
src/seek_sanity_test.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/seek_sanity_test.c b/src/seek_sanity_test.c
index a185e54..34f5508 100644
--- a/src/seek_sanity_test.c
+++ b/src/seek_sanity_test.c
@@ -42,8 +42,10 @@ static void get_file_system(int fd)
{
struct statfs buf;
- if (!fstatfs(fd, &buf))
- fprintf(stdout, "File system magic#: 0x%lx\n", buf.f_type);
+ if (!fstatfs(fd, &buf)) {
+ fprintf(stdout, "File system magic#: 0x%lx\n",
+ (unsigned long int)buf.f_type);
+ }
}
static int get_io_sizes(int fd)
--
1.7.9
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next reply other threads:[~2012-06-02 14:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-02 14:33 Jeff Liu [this message]
2012-09-19 13:36 ` [PATCH] xfstests: fix a compile warning at seek_sanity_test.c Mark Tinguely
2012-09-19 14:04 ` Jeff Liu
2012-09-19 14:11 ` Mark Tinguely
2012-09-19 14:17 ` Jeff Liu
2012-09-24 21:21 ` Mark Tinguely
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=4FCA2422.90804@oracle.com \
--to=jeff.liu@oracle.com \
--cc=xfs@oss.sgi.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