mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
xfstests: fix compile warnings in iopat.c
Printf format warnings and return value warnings need fixing. Signed-off-by: Dave Chinner <david@fromorbit.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
+2
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user