From 3805eebdfbef4117876f50b7f9d93831fb5c15dd Mon Sep 17 00:00:00 2001 From: "robert.read" Date: Fri, 17 Jul 2009 22:38:38 +0000 Subject: [PATCH] Branch HEAD b=19312 Emergency landing to fix build error on i686. --- lustre/tests/mpi/parallel_grouplock.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lustre/tests/mpi/parallel_grouplock.c b/lustre/tests/mpi/parallel_grouplock.c index 8f8d4ee..3c63369 100644 --- a/lustre/tests/mpi/parallel_grouplock.c +++ b/lustre/tests/mpi/parallel_grouplock.c @@ -107,13 +107,13 @@ read_buf(int fd) pos = lseek(fd, 0, SEEK_CUR); sprintf(errmsg, "read of file %s at pos %d for %lu bytes " "returned %d: (%d) %s.\n", - filename, pos, sizeof(buf), rc, errno, strerror(errno)); + filename, pos, (unsigned long)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 " "returned %d.\n", - filename, pos, sizeof(buf), rc); + filename, pos, (unsigned long) sizeof(buf), rc); FAIL(errmsg); } } @@ -130,12 +130,12 @@ write_buf(int fd, int index) if (rc == -1) { sprintf(errmsg, "write of file %s at pos %d for %lu bytes " "returned %d: (%d) %s.\n", - filename, pos, sizeof(buf), rc, errno, strerror(errno)); + filename, pos, (unsigned long)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 " "returned %d.\n", - filename, pos, sizeof(buf), rc); + filename, pos, (unsigned long)sizeof(buf), rc); FAIL(errmsg); } } -- 1.8.3.1