xfs
[Top] [All Lists]

[PATCH 5/7] xfsprogs: fix print format warnings in xfs_io

To: xfs@xxxxxxxxxxx
Subject: [PATCH 5/7] xfsprogs: fix print format warnings in xfs_io
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Tue, 19 Jan 2010 11:36:51 +1100
In-reply-to: <1263861413-13729-1-git-send-email-david@xxxxxxxxxxxxx>
References: <1263861413-13729-1-git-send-email-david@xxxxxxxxxxxxx>
Signed-off-by: Dave Chinner <david@xxxxxxxxxxxxx>
Reviewed-by: Christoph Hellwig <hch@xxxxxx>
---
 io/madvise.c |    2 +-
 io/mincore.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/io/madvise.c b/io/madvise.c
index cd16a4c..3235402 100644
--- a/io/madvise.c
+++ b/io/madvise.c
@@ -96,7 +96,7 @@ madvise_f(
                        return 0;
                } else if (llength > (size_t)llength) {
                        printf(_("length argument too large -- %lld\n"),
-                               llength);
+                               (long long)llength);
                        return 0;
                } else
                        length = (size_t)llength;
diff --git a/io/mincore.c b/io/mincore.c
index d534540..60625ef 100644
--- a/io/mincore.c
+++ b/io/mincore.c
@@ -56,7 +56,7 @@ mincore_f(
                        return 0;
                } else if (llength > (size_t)llength) {
                        printf(_("length argument too large -- %lld\n"),
-                               llength);
+                               (long long)llength);
                        return 0;
                } else
                        length = (size_t)llength;
-- 
1.6.5

<Prev in Thread] Current Thread [Next in Thread>