xfstests: fix some warnings
authorAlex Elder <aelder@sgi.com>
Fri, 12 Feb 2010 20:49:45 +0000 (20:49 +0000)
committerAlex Elder <aelder@sgi.com>
Sat, 13 Feb 2010 15:59:49 +0000 (09:59 -0600)
Fix a couple of build warnings.

Signed-off-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
ltp/fsx.c
src/loggen.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, "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;
                        fprintf(stderr, "aio_rw: async io failed: %s\n",
                                        strerror(-res));
                        ret = res;
index ce16955da6cb4e029ab2f3fd3b7b265a95b50ae3..ab476887f7b756e0ae65d64d3dabaf2b29425686 100644 (file)
@@ -240,6 +240,7 @@ loggen_empty(int count)
     blfs.blf_type       = XFS_LI_BUF;
     blfs.blf_size       = 2;
     blfs.blf_flags      = XFS_BLI_CANCEL;
     blfs.blf_type       = XFS_LI_BUF;
     blfs.blf_size       = 2;
     blfs.blf_flags      = XFS_BLI_CANCEL;
+    blfs.blf_len        = 0;
     blfs.blf_blkno      = 1;
     blfs.blf_map_size   = 1;
     blfs.blf_data_map[0]= 0;
     blfs.blf_blkno      = 1;
     blfs.blf_map_size   = 1;
     blfs.blf_data_map[0]= 0;