From: grev Date: Wed, 2 Sep 2009 16:57:23 +0000 (+0000) Subject: b=19312 X-Git-Tag: v1_8_2_01~1^2~143 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=401db1c052a0329781d941ca3e9609b9cb07a787;p=fs%2Flustre-release.git b=19312 i=Robert.Read compile warning fix --- diff --git a/lustre/tests/mpi/parallel_grouplock.c b/lustre/tests/mpi/parallel_grouplock.c index 8f8d4ee..0f9a137 100644 --- a/lustre/tests/mpi/parallel_grouplock.c +++ b/lustre/tests/mpi/parallel_grouplock.c @@ -105,13 +105,13 @@ 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, 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, sizeof(buf), rc); FAIL(errmsg); @@ -128,12 +128,12 @@ 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, 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, sizeof(buf), rc); FAIL(errmsg);