xfstests: fix some warnings
[xfstests-dev.git] / ltp / fsx.c
index e4c528dfb9ed2182da3ce980bf88968dbf31122a..1167d728922c12feeb4cafc0bd70835359add00b 100644 (file)
--- a/ltp/fsx.c
+++ b/ltp/fsx.c
@@ -1038,7 +1038,7 @@ __aio_rw(int rw, int fd, char *buf, unsigned len, unsigned offset)
                        fprintf(stderr, "bad io length: %lu instead of %u\n",
                                        res, len);
                else {
-                       fprintf(stderr, "errcode=%d\n", -res);
+                       fprintf(stderr, "errcode=%ld\n", -res);
                        fprintf(stderr, "aio_rw: async io failed: %s\n",
                                        strerror(-res));
                        ret = res;