xfs
[Top] [All Lists]

[PATCH 5/8] xfstests: fix compile warnings in iopat.c

To: xfs@xxxxxxxxxxx
Subject: [PATCH 5/8] xfstests: fix compile warnings in iopat.c
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Wed, 20 Jan 2010 14:38:05 +1100
In-reply-to: <1263958688-435-1-git-send-email-david@xxxxxxxxxxxxx>
References: <1263958688-435-1-git-send-email-david@xxxxxxxxxxxxx>
Printf format warnings and return value warnings need fixing.

Signed-off-by: Dave Chinner <david@xxxxxxxxxxxxx>
---
 src/iopat.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/iopat.c b/src/iopat.c
index c06071f..f34de19 100644
--- a/src/iopat.c
+++ b/src/iopat.c
@@ -47,12 +47,13 @@ int main(int argc, char **argv)
    read(fd, &x, 1048576);
    for (i = 0; i < 131072; i++) {
       if (x[i] != i) {
-         printf("error: %d %d %d\n",i,8*i,x[i]);
+         printf("error: %d %d %lld\n", i ,8 * i, (long long)x[i]);
         exit(1);
       }
    }
 #endif
 
    close(fd);
+   exit(0);
 }
 
-- 
1.6.5

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