From d3e7dd65e83f1c840113c286effd074b924b177b Mon Sep 17 00:00:00 2001 From: grev Date: Fri, 4 Sep 2009 13:01:11 +0000 Subject: [PATCH] b=19312 i=Robert.Read compile warning fix --- lustre/tests/mpi/parallel_grouplock.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lustre/tests/mpi/parallel_grouplock.c b/lustre/tests/mpi/parallel_grouplock.c index a2a6e86..1946b39 100644 --- a/lustre/tests/mpi/parallel_grouplock.c +++ b/lustre/tests/mpi/parallel_grouplock.c @@ -106,15 +106,15 @@ read_buf(int fd) rc = read(fd, buf, sizeof(buf)); if (rc == -1) { pos = lseek(fd, 0, SEEK_CUR); - sprintf(errmsg, "read of file %s at pos %d for %lu bytes " + sprintf(errmsg, "read of file %s at pos %d for %zu bytes " "returned %d: (%d) %s.\n", - filename, pos, (unsigned long)sizeof(buf), rc, errno, strerror(errno)); + filename, pos, sizeof(buf), rc, errno, strerror(errno)); FAIL(errmsg); } else if (rc != sizeof(buf)) { pos = lseek(fd, 0, SEEK_CUR); - sprintf(errmsg, "read of file %s at pos %d for %lu bytes " + sprintf(errmsg, "read of file %s at pos %d for %zu bytes " "returned %d.\n", - filename, pos, (unsigned long) sizeof(buf), rc); + filename, pos, sizeof(buf), rc); FAIL(errmsg); } } @@ -129,14 +129,14 @@ write_buf(int fd, int index) lseek(fd, pos, SEEK_SET); rc = write(fd, buf, sizeof(buf)); if (rc == -1) { - sprintf(errmsg, "write of file %s at pos %d for %lu bytes " + sprintf(errmsg, "write of file %s at pos %d for %zu bytes " "returned %d: (%d) %s.\n", - filename, pos, (unsigned long)sizeof(buf), rc, errno, strerror(errno)); + filename, pos, sizeof(buf), rc, errno, strerror(errno)); FAIL(errmsg); } else if (rc != sizeof(buf)) { - sprintf(errmsg, "write of file %s at pos %d for %lu bytes " + sprintf(errmsg, "write of file %s at pos %d for %zu bytes " "returned %d.\n", - filename, pos, (unsigned long)sizeof(buf), rc); + filename, pos, sizeof(buf), rc); FAIL(errmsg); } } -- 1.8.3.1