projects
/
xfstests-dev.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2093988
)
xfstests: fix compile warnings in iopat.c
author
Dave Chinner
<david@fromorbit.com>
Wed, 20 Jan 2010 21:54:08 +0000
(08:54 +1100)
committer
Dave Chinner
<david@fromorbit.com>
Wed, 20 Jan 2010 21:54:08 +0000
(08:54 +1100)
Printf format warnings and return value warnings need fixing.
Signed-off-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
src/iopat.c
patch
|
blob
|
history
diff --git
a/src/iopat.c
b/src/iopat.c
index c06071f92f72e95cfed4851969ccba470d75e608..f34de19c688afbf2b0130062055a0c316a101ee6 100644
(file)
--- 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);
}