Skip to content

Commit

Permalink
xfstests: fix compile warnings in iopat.c
Browse files Browse the repository at this point in the history
Printf format warnings and return value warnings need fixing.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
  • Loading branch information
dchinner committed Jan 20, 2010
1 parent 2093988 commit 346eb6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/iopat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 346eb6d

Please sign in to comment.